|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* User: Simon Libaud |
|
4
|
|
|
* Date: 08/03/2017 |
|
5
|
|
|
* Email: [email protected]. |
|
6
|
|
|
*/ |
|
7
|
|
|
namespace Sil\RouteSecurityBundle; |
|
8
|
|
|
|
|
9
|
|
|
use Sil\RouteSecurityBundle\DependencyInjection\Compiler\DynamicServiceCompilerPass; |
|
10
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
11
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* Class SilRouteSecurityBundle. |
|
15
|
|
|
*/ |
|
16
|
|
|
class SilRouteSecurityBundle extends Bundle |
|
17
|
|
|
{ |
|
18
|
4 |
|
public function build(ContainerBuilder $container) |
|
19
|
|
|
{ |
|
20
|
4 |
|
$container->addCompilerPass(new DynamicServiceCompilerPass()); |
|
21
|
4 |
|
} |
|
22
|
|
|
} |
|
23
|
|
|
|