Skip to content

Area Code is not set when working in CLI command class and run di:complie

i am working in command class, when i inject a class in constructor and run di complie, it gives error of “area code is not set”, when i remove injected class form the constructor then my command is working, taking argume