| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | 39 | public function process(ContainerBuilder $container) |
|
| 22 | { |
||
| 23 | |||
| 24 | 39 | $taggedServices = $container->findTaggedServiceIds(self::TAGGED_SERVICES); |
|
| 25 | |||
| 26 | 39 | uasort( |
|
| 27 | 39 | $taggedServices, |
|
| 28 | 39 | function ($a, $b) { |
|
| 29 | 39 | return $a[0]['priority'] > $b[0]['priority']; |
|
| 30 | } |
||
| 31 | 39 | ); |
|
| 32 | |||
| 33 | 39 | foreach ($taggedServices as $id => $taggedService) { |
|
| 34 | 39 | $service = $container->getDefinition(self::TO_COMPILE); |
|
| 35 | 39 | $service->addMethodCall('addParser', array(new Reference($id))); |
|
| 36 | 39 | } |
|
| 37 | |||
| 38 | 39 | } |
|
| 39 | |||
| 41 |