| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function build(ContainerBuilder $container) |
||
| 22 | { |
||
| 23 | parent::build($container); |
||
| 24 | |||
| 25 | $extension = $container->getExtension('security'); |
||
| 26 | |||
| 27 | // 2.0 does not support this. |
||
| 28 | if (method_exists('\Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension', 'addSecurityListenerFactory')) { |
||
| 29 | $extension->addSecurityListenerFactory(new RequestSignatureFactory()); |
||
| 30 | } |
||
| 31 | |||
| 32 | $container->addCompilerPass(new Compiler\ObfuscatorCompilerPass()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |