Search code examples
phpsymfonysymfony4

How to enable console commands in production mode?


I want to use symfony console command for cron job. It's working right in dev enviroment, but if I switch mode to production, I get an error "There are no commands defined in the "cron" namespace. isEnabled() method always returns true.


Solution

  • Apparently it was a bug. After executing the command "composer update" everything works.