forked from netgen/TagsBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetgenTagsBundle.php
More file actions
28 lines (23 loc) · 866 Bytes
/
NetgenTagsBundle.php
File metadata and controls
28 lines (23 loc) · 866 Bytes
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
26
27
28
<?php
namespace Netgen\TagsBundle;
use Netgen\TagsBundle\DependencyInjection\Compiler\TagViewBuilderPass;
use Netgen\TagsBundle\DependencyInjection\Security\PolicyProvider\TagsPolicyProvider;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NetgenTagsBundle extends Bundle
{
/**
* Builds the bundle.
*
* It is only ever called once when the cache is empty.
*
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container A ContainerBuilder instance
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new TagViewBuilderPass());
$eZExtension = $container->getExtension('ezpublish');
$eZExtension->addPolicyProvider(new TagsPolicyProvider());
}
}