-
Notifications
You must be signed in to change notification settings - Fork 30
/
KunstmaanAdminBundle.php
53 lines (46 loc) · 2.61 KB
/
KunstmaanAdminBundle.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Kunstmaan\AdminBundle;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\AddLogProcessorsCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\AdminPanelCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\ConsoleCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\ConvertFosUserParametersCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DataCollectorPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DeprecateClassParametersPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DomainConfigurationPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\EnablePermissionsPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\InjectUntrackedTokenStorageCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\MenuCompilerPass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\PagerfantaBridgePass;
use Kunstmaan\AdminBundle\DependencyInjection\Compiler\VersionCheckerCacheBcPass;
use Kunstmaan\AdminBundle\DependencyInjection\KunstmaanAdminExtension;
use Kunstmaan\AdminBundle\DependencyInjection\PagerfantaExtension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* KunstmaanAdminBundle
*/
class KunstmaanAdminBundle extends Bundle
{
/**
* @param ContainerBuilder $container A ContainerBuilder instance
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MenuCompilerPass());
$container->addCompilerPass(new AdminPanelCompilerPass());
$container->addCompilerPass(new AddLogProcessorsCompilerPass());
$container->addCompilerPass(new DataCollectorPass());
$container->addCompilerPass(new DomainConfigurationPass());
$container->addCompilerPass(new ConsoleCompilerPass());
$container->addCompilerPass(new InjectUntrackedTokenStorageCompilerPass());
$container->addCompilerPass(new EnablePermissionsPass());
$container->addCompilerPass(new ConvertFosUserParametersCompilerPass());
$container->addCompilerPass(new DeprecateClassParametersPass());
$container->addCompilerPass(new VersionCheckerCacheBcPass());
$container->registerExtension(new KunstmaanAdminExtension());
$container->registerExtension(new PagerfantaExtension());
$container->addCompilerPass(new PagerfantaBridgePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -1); // Should run after all passes from BabDevPagerfantaBundle
}
}