You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
30 lines
1.2 KiB
|
9 years ago
|
<?php
|
||
|
|
|
||
|
|
namespace Knp\Bundle\MenuBundle;
|
||
|
|
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\AddExtensionsPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\AddProvidersPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\AddRenderersPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\AddTemplatePathPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\AddVotersPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\MenuBuilderPass;
|
||
|
|
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\MenuPass;
|
||
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||
|
|
|
||
|
|
class KnpMenuBundle extends Bundle
|
||
|
|
{
|
||
|
|
public function build(ContainerBuilder $container)
|
||
|
|
{
|
||
|
|
parent::build($container);
|
||
|
|
|
||
|
|
$container->addCompilerPass(new MenuPass());
|
||
|
|
$container->addCompilerPass(new MenuBuilderPass());
|
||
|
|
$container->addCompilerPass(new AddExtensionsPass());
|
||
|
|
$container->addCompilerPass(new AddProvidersPass());
|
||
|
|
$container->addCompilerPass(new AddRenderersPass());
|
||
|
|
$container->addCompilerPass(new AddTemplatePathPass());
|
||
|
|
$container->addCompilerPass(new AddVotersPass());
|
||
|
|
}
|
||
|
|
}
|