vendor/best-it/routing-bundle/src/BestItRoutingBundle.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace BestIt\Routing;
  4. use BestIt\Routing\DependencyInjection\CompilerPass\RouterPass;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. /**
  8. * Bundle entrypoint
  9. *
  10. * @author Michel Chowanski <michel.chowanski@bestit-online.de>
  11. * @package BestIt\Routing
  12. */
  13. class BestItRoutingBundle extends Bundle
  14. {
  15. /**
  16. * Build bundle
  17. *
  18. * @param ContainerBuilder $container
  19. *
  20. * @return void
  21. */
  22. #[\Override]
  23. public function build(ContainerBuilder $container): void
  24. {
  25. parent::build($container);
  26. $container->addCompilerPass(new RouterPass());
  27. }
  28. }