oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Support lazy command definition in CronDefinitionsLoadCommand #1106

Closed powli closed 7 months ago

powli commented 11 months ago

When defining cron commands to be lazy, they will be loaded as instances of LazyCommand and thus fail the $command instanceof CronCommandScheduleDefinitionInterface check.

Compare SymfonyConsole Application::doRun.

This already affects the RemoveOrphanedMaterializedViewsCronCommand definition not being loaded

powli commented 7 months ago

:heavy_check_mark: resolved by https://github.com/oroinc/platform/commit/82d418f98a2b5a55927b1a379a99cde468ad6e4f