forked from KnpLabs/KnpMenuBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KnpMenuBundle.php
25 lines (21 loc) · 946 Bytes
/
KnpMenuBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace Knp\Bundle\MenuBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Knp\Bundle\MenuBundle\DependencyInjection\Compiler\MenuPass;
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;
class KnpMenuBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MenuPass());
$container->addCompilerPass(new AddProvidersPass());
$container->addCompilerPass(new AddRenderersPass());
$container->addCompilerPass(new AddTemplatePathPass());
$container->addCompilerPass(new AddVotersPass());
}
}