How to enable console commands in production mode?

Viewed 951

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.

2 Answers

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

The composer update doesn't actually fix this problem, not directly. It was the commands at the end of the update bin/console cache:clear

Related