| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) |
||
| 28 | { |
||
| 29 | $providerId = 'security.authentication.provider.wsse.'.$id; |
||
| 30 | $container |
||
| 31 | ->setDefinition($providerId, new ChildDefinition('happyr_api.wsse.security.authentication.provider')) |
||
| 32 | ->replaceArgument(0, new Reference($userProvider)) |
||
| 33 | ; |
||
| 34 | |||
| 35 | $listenerId = 'security.authentication.listener.wsse.'.$id; |
||
| 36 | $container->setDefinition($listenerId, new ChildDefinition('happyr_api.wsse.security.authentication.listener')); |
||
| 37 | |||
| 38 | return [$providerId, $listenerId, $defaultEntryPoint]; |
||
| 39 | } |
||
| 40 | |||
| 64 |