vendor/zenstruck/schedule-bundle/src/ZenstruckScheduleBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Zenstruck\ScheduleBundle;
  3. use Symfony\Component\DependencyInjection\ContainerBuilder;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. use Zenstruck\ScheduleBundle\DependencyInjection\Compiler\ScheduleBuilderKernelPass;
  6. use Zenstruck\ScheduleBundle\DependencyInjection\Compiler\ScheduledServiceBuilderPass;
  7. /**
  8.  * @author Kevin Bond <kevinbond@gmail.com>
  9.  */
  10. final class ZenstruckScheduleBundle extends Bundle
  11. {
  12.     public function build(ContainerBuilder $container): void
  13.     {
  14.         parent::build($container);
  15.         $container->addCompilerPass(new ScheduleBuilderKernelPass());
  16.         $container->addCompilerPass(new ScheduledServiceBuilderPass());
  17.     }
  18. }