static public $defaultDescription = 'Exports orders to xml';
run bin/console oro:cron:definitions:load to load definitions
Actual Result
Definition is not loaded I see such notification:
Processing command "oro:cron:madia:xml-export-orders": Skipping, the command does not implement CronCommandInterface
Expected Result
Command defition should be successfully loaded
Details about your environment
oro/platform | 5.0.11
oro/platform-enterprise | 5.0.9
PHP version: 8.1
PostgreSQL
Additional information
I set breakpoint in CronDefinitionsLoadCommand::checkCommand and see LazyCommand instance instead actual one. Adding defaultDescription marks command as a lazy, and make not possible to load definitions
Summary
Cron Command is not registering if it has $defaultDescription field
Steps to reproduce
static public $defaultDescription = 'Exports orders to xml';
bin/console oro:cron:definitions:load
to load definitionsActual Result Definition is not loaded I see such notification:
Processing command "oro:cron:madia:xml-export-orders": Skipping, the command does not implement CronCommandInterface
Expected Result
Command defition should be successfully loaded
Details about your environment oro/platform | 5.0.11 oro/platform-enterprise | 5.0.9
I set breakpoint in
CronDefinitionsLoadCommand::checkCommand
and seeLazyCommand
instance instead actual one. Adding defaultDescription marks command as a lazy, and make not possible to load definitions