| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function inject(Container $container, $service, array $serviceConfig) |
||
| 11 | { |
||
| 12 | $propConfig = array(); |
||
| 13 | |||
| 14 | if (array_key_exists('props', $serviceConfig)) { |
||
| 15 | $propConfig = $serviceConfig['props']; |
||
| 16 | } |
||
| 17 | |||
| 18 | foreach($propConfig as $propName => $propValue) { |
||
| 19 | $convertedValue = $container->resolve($propValue); |
||
| 20 | $service->$propName = $convertedValue; |
||
| 21 | } |
||
| 22 | |||
| 23 | return true; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |