flexic/scheduler-bundle

Provides an scheduler bundle for symfony framework.

2.0.4 2023-03-19 15:51 UTC

This package is auto-updated.

Last update: 2024-04-19 17:57:11 UTC


README

Provides the integration of the PHP Scheduler library into Symfony Framework.

Installation

Run

composer require flexic/scheduler-bundle

to install flexic/scheduler-bundle.

If you are using Symfony Flex, the bundle will be automatically enabled. To enable the bundle manually, add it to the list of registered bundles in the config/bundles.php file of your project:

return [
    // ...
    Flexic\SchedulerBundle\SchedulerBundle::class => ['all' => true],
    // ...
];

Tag Schedule Events

To make a schedule event available to the scheduler, you need to tag it with scheduler.schedule_event.

services:
  _instanceof:
    Flexic\Scheduler\Interfaces\ScheduleEventInterface:
      tags: [ 'scheduler.schedule_event' ]

or

services:
  Your\Schedule\Event\Class:
    tags: [ 'scheduler.schedule_event' ]

License

This package is licensed using the GNU License.

Please have a look at LICENSE.md.

Donate