vendor/sulu/sulu/src/Sulu/Bundle/CustomUrlBundle/SuluCustomUrlBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\CustomUrlBundle;
  11. use Symfony\Cmf\Component\Routing\DependencyInjection\Compiler\RegisterRouteEnhancersPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. /**
  15.  * Integrates custom-urls into sulu.
  16.  */
  17. class SuluCustomUrlBundle extends Bundle
  18. {
  19.     public function build(ContainerBuilder $container)
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(
  23.             new RegisterRouteEnhancersPass('sulu_custom_urls.routing.router''sulu_custom_urls.route_enhancer')
  24.         );
  25.     }
  26. }