| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | 5 | public function process(ContainerBuilder $container) |
|
| 21 | { |
||
| 22 | 5 | foreach ($container->getDefinitions() as $serviceId => $definition) { |
|
| 23 | 5 | try { |
|
| 24 | 1 | $reflection = new ReflectionClass($definition->getClass()); |
|
| 25 | } catch (ReflectionException $e) { |
||
| 26 | continue; |
||
| 27 | 4 | } |
|
| 28 | |||
| 29 | $filename = $reflection->getFileName(); |
||
| 30 | 4 | if (!empty($filename)) { |
|
| 31 | 1 | $definition->setFile($filename); |
|
| 32 | 1 | } |
|
| 33 | } |
||
| 34 | } |
||
| 35 | } |
||
| 36 |