Timeline for 'Area code not set' issue in custom CLI commands in Magento 2
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 3, 2018 at 9:29 | comment | added | DependencyHell |
@xxx I had this problem from a custom command, so I wrote this in the command file I created. You can add it in the execute function, with something like : try { $this->_state->... } finally { $this->executeMyCommand() }
|
|
Apr 3, 2018 at 7:43 | comment | added | Magento Learner | In which file should I add this code? I have exactly the same problem. | |
Apr 12, 2017 at 22:04 | review | Late answers | |||
Apr 13, 2017 at 3:09 | |||||
Apr 12, 2017 at 21:44 | history | answered | DependencyHell | CC BY-SA 3.0 |