Open
Description
Summary
Cron Command is not registering if it has $defaultDescription field
Steps to reproduce
- Create standard oro cron command according to the doc - https://doc.oroinc.com/1.6/user/back-office/system/scheduled-tasks/
- Which implements CronCommandInterface, etc
- Add default descrition field:
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 inCronDefinitionsLoadCommand::checkCommand
and seeLazyCommand
instance instead actual one. Adding defaultDescription marks command as a lazy, and make not possible to load definitions