-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMSBundle.php
More file actions
31 lines (26 loc) · 1.2 KB
/
CMSBundle.php
File metadata and controls
31 lines (26 loc) · 1.2 KB
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
29
30
31
<?php
namespace SmartCore\Bundle\CMSBundle;
use SmartCore\Bundle\CMSBundle\DependencyInjection\Compiler\ChangeRouterClassPass;
use SmartCore\Bundle\CMSBundle\DependencyInjection\Compiler\FormPass;
use SmartCore\Bundle\CMSBundle\DependencyInjection\Compiler\ModulesRoutingResolverPass;
use SmartCore\Bundle\CMSBundle\DependencyInjection\Compiler\RemoveTagcacheActionCacheListenerPass;
use SmartCore\Bundle\CMSBundle\DependencyInjection\Compiler\TwigLoaderPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CMSBundle extends Bundle
{
public function boot()
{
Container::setContainer($this->container);
}
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ChangeRouterClassPass());
$container->addCompilerPass(new TwigLoaderPass());
$container->addCompilerPass(new ModulesRoutingResolverPass());
$container->addCompilerPass(new FormPass());
$container->addCompilerPass(new RemoveTagcacheActionCacheListenerPass()); //, PassConfig::TYPE_AFTER_REMOVING);
}
}