| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function build(ContainerBuilder $container) |
||
| 15 | { |
||
| 16 | parent::build($container); |
||
| 17 | |||
| 18 | $bundleDirectory = dirname((new \ReflectionClass(get_class($this)))->getFileName()); |
||
| 19 | $xmlPath = $bundleDirectory . '/Resources/xml/attribute-map.xml'; |
||
| 20 | $container->addCompilerPass(new KuleuvenShibbolethAttributeDefinitionsXmlParserPass($xmlPath)); |
||
| 21 | $container->addCompilerPass(new AuthenticationAttributesProviderPass()); |
||
| 22 | |||
| 23 | |||
| 24 | /** @var SecurityExtension $extension */ |
||
| 25 | $extension = $container->getExtension('security'); |
||
| 26 | $extension->addSecurityListenerFactory(new ShibbolethAuthenticationListenerFactory()); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |