vendor/sulu/sulu/src/Sulu/Bundle/CustomUrlBundle/SuluCustomUrlBundle.php line 22
<?php
/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\CustomUrlBundle;
use Sulu\Component\Route\RouteDefaultOptionsCompilerPass;
use Symfony\Cmf\Component\Routing\DependencyInjection\Compiler\RegisterRouteEnhancersPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Integrates custom-urls into sulu.
*/
class SuluCustomUrlBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(
new RouteDefaultOptionsCompilerPass('sulu_custom_urls.routing.provider', 3)
);
$container->addCompilerPass(
new RegisterRouteEnhancersPass('sulu_custom_urls.routing.router', 'sulu_custom_urls.route_enhancer')
);
}
}