-
Notifications
You must be signed in to change notification settings - Fork 346
Open
Labels
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:loadto 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::checkCommandand seeLazyCommandinstance instead actual one. Adding defaultDescription marks command as a lazy, and make not possible to load definitions
Reactions are currently unavailable