vendor/rewieer/taskschedulerbundle/RewieerTaskSchedulerBundle.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3. * (c) Antonny Cyrille <rewieer@gmail.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. declare(strict_types=1);
  9. namespace Rewieer\TaskSchedulerBundle;
  10. use Rewieer\TaskSchedulerBundle\DependencyInjection\Compiler\EventDispatcherPass;
  11. use Rewieer\TaskSchedulerBundle\DependencyInjection\Compiler\TaskPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class RewieerTaskSchedulerBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container): void
  17. {
  18. $container->addCompilerPass(new TaskPass());
  19. $container->addCompilerPass(new EventDispatcherPass());
  20. }
  21. }