| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) |
||
| 19 | { |
||
| 20 | $providerId = 'security.authentication.provider.ip.'.$id; |
||
| 21 | $container |
||
| 22 | ->setDefinition($providerId, new DefinitionDecorator('kaliop_identity.security.authentication.provider.ip')) |
||
| 23 | ->replaceArgument(0, new Reference($config['mapper'])) |
||
| 24 | ->replaceArgument(1, new Reference($userProvider)) |
||
| 25 | ; |
||
| 26 | |||
| 27 | $listenerId = 'security.authentication.listener.ip.'.$id; |
||
| 28 | $container->setDefinition($listenerId, new DefinitionDecorator('kaliop_identity.security.authentication.listener.ip')); |
||
| 29 | |||
| 30 | return array($providerId, $listenerId, $defaultEntryPoint); |
||
| 31 | } |
||
| 32 | |||
| 50 | } |