for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\RouterBundle;
use ONGR\RouterBundle\DependencyInjection\Compiler\SeoRoutesPass;
use ONGR\RouterBundle\DependencyInjection\Compiler\SetRouterPass;
use Symfony\Cmf\Component\Routing\DependencyInjection\Compiler\RegisterRoutersPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Bundle.
class ONGRRouterBundle extends Bundle
{
* {@inheritdoc}
public function build(ContainerBuilder $container)
parent::build($container);
$container->addCompilerPass(new SeoRoutesPass());
$container->addCompilerPass(new SetRouterPass());
$container->addCompilerPass(new RegisterRoutersPass('ongr_router.chain_router'));
}