- Many internal changes and use of Symfony 5.4 features.
- Use of PHP8.1 feature set
-
Removed
CronJob
Annotation, useAsCronJob
Attribute instead. Before:<?php // .... use Shapecode\Bundle\CronBundle\Annotation\CronJob; // .... /** * @CronJob("*\/5 * * * *") */ class DemoCommand extends Command { // ... }
After:
<?php // .... use Shapecode\Bundle\CronBundle\Attribute\AsCronJob; // .... #[AsCronJob('* * * * *')] class DemoCommand extends Command { // ... }
- Removed
shapecode:cron:edit
command, useshapecode:cron:enable
andshapecode:cron:disable
instead.
- Removed
LoadJobsEvent::NAME
as event name. Use class name instead
- Changed from annotations to attributes
- Register repositories as services