src/Bundle/Routing/AppRoutingBundle.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Bundle\Routing;
  4. use App\Bundle\Routing\DependencyInjection\Compiler\SetRouterPass;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. class AppRoutingBundle extends Bundle
  8. {
  9.     /**
  10.      * {@inheritDoc}
  11.      */
  12.     public function build(ContainerBuilder $container)
  13.     {
  14.         parent::build($container);
  15.         $container->addCompilerPass(new SetRouterPass());
  16.     }
  17. }