-
Notifications
You must be signed in to change notification settings - Fork 11
/
PicossSonataExtraAdminBundle.php
41 lines (36 loc) · 1.36 KB
/
PicossSonataExtraAdminBundle.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
<?php
/*
* This file is part of the YesWeHack BugBounty backend
*
* (c) Romain Honel <romain.honel@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Picoss\SonataExtraAdminBundle;
use Picoss\SonataExtraAdminBundle\DependencyInjection\Compiler\AddAuditEntityCompilerPass;
use Picoss\SonataExtraAdminBundle\DependencyInjection\Compiler\AddTrashEntityCompilerPass;
use Picoss\SonataExtraAdminBundle\DependencyInjection\Compiler\EntityRouterCompilerPass;
use Picoss\SonataExtraAdminBundle\DependencyInjection\Compiler\FormPass;
use Picoss\SonataExtraAdminBundle\DependencyInjection\Compiler\SonataTemplatesPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class PicossSonataExtraAdminBundle
*
* @author Romain Honel <romain.honel@gmail.com>
*/
class PicossSonataExtraAdminBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new SonataTemplatesPass());
$container->addCompilerPass(new AddAuditEntityCompilerPass());
$container->addCompilerPass(new AddTrashEntityCompilerPass());
$container->addCompilerPass(new EntityRouterCompilerPass());
}
}