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

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the zenstruck/schedule-bundle package.
  4. *
  5. * (c) Kevin Bond <kevinbond@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Zenstruck\ScheduleBundle;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Zenstruck\ScheduleBundle\DependencyInjection\Compiler\ScheduleBuilderKernelPass;
  14. use Zenstruck\ScheduleBundle\DependencyInjection\Compiler\ScheduledServiceBuilderPass;
  15. /**
  16. * @author Kevin Bond <kevinbond@gmail.com>
  17. */
  18. final class ZenstruckScheduleBundle extends Bundle
  19. {
  20. public function build(ContainerBuilder $container): void
  21. {
  22. parent::build($container);
  23. $container->addCompilerPass(new ScheduleBuilderKernelPass());
  24. $container->addCompilerPass(new ScheduledServiceBuilderPass());
  25. }
  26. }