| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | 1 | public function process(ContainerBuilder $container) |
|
| 18 | { |
||
| 19 | 1 | $services = array(); |
|
| 20 | |||
| 21 | 1 | $activeServices = $container->getParameter('krtv_single_sign_on_identity_provider.services'); |
|
| 22 | |||
| 23 | 1 | foreach ($container->findTaggedServiceIds('sso.service_provider') as $id => $attributes) { |
|
| 24 | 1 | $name = $attributes[0]['service']; |
|
| 25 | |||
| 26 | 1 | if (in_array($name, $activeServices)) { |
|
| 27 | 1 | $services[$name] = $container->getDefinition($id); |
|
| 28 | 1 | } |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | 1 | $container->getDefinition('krtv_single_sign_on_identity_provider.manager.service_manager') |
|
| 32 | 1 | ->replaceArgument(3, $services); |
|
| 33 | 1 | } |
|
| 34 | } |
||
| 35 |