forked from fsi-open/admin-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFSiAdminBundle.php
More file actions
45 lines (38 loc) · 1.22 KB
/
FSiAdminBundle.php
File metadata and controls
45 lines (38 loc) · 1.22 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* (c) FSi sp. z o.o. <info@fsi.pl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FSi\Bundle\AdminBundle;
use FSi\Bundle\AdminBundle\DependencyInjection\Compiler\AdminElementPass;
use FSi\Bundle\AdminBundle\DependencyInjection\Compiler\ContextBuilderPass;
use FSi\Bundle\AdminBundle\DependencyInjection\FSIAdminExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @author Norbert Orzechowicz <norbert@fsi.pl>
*/
class FSiAdminBundle extends Bundle
{
/**
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new AdminElementPass());
$container->addCompilerPass(new ContextBuilderPass());
}
/**
* @return \FSi\Bundle\AdminBundle\DependencyInjection\FSIAdminExtension
*/
public function getContainerExtension()
{
if (null === $this->extension) {
$this->extension = new FSIAdminExtension();
}
return $this->extension;
}
}