-
Notifications
You must be signed in to change notification settings - Fork 8
/
LyraAdminBundle.php
33 lines (28 loc) · 965 Bytes
/
LyraAdminBundle.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
<?php
/*
* This file is part of the LyraAdminBundle package.
*
* Copyright 2011 Massimo Giagnoni <[email protected]>
*
* This source file is subject to the MIT license. Full copyright and license
* information are in the LICENSE file distributed with this source code.
*/
namespace Lyra\AdminBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Lyra\AdminBundle\DependencyInjection\Compiler\ConfigureModelManagersPass;
use Lyra\AdminBundle\DependencyInjection\Compiler\SaveRouteResourcePass;
/**
* LyraAdminBundle
*/
class LyraAdminBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ConfigureModelManagersPass());
if ('dev' == $container->getParameter('kernel.environment')) {
$container->addCompilerPass(new SaveRouteResourcePass());
}
}
}