| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public static function getService(string $serviceId) |
||
| 28 | { |
||
| 29 | $service = self::$container->get($serviceId, ContainerInterface::NULL_ON_INVALID_REFERENCE); |
||
| 30 | if($service === null && self::$locator !== null && self::$locator->has($serviceId)) |
||
| 31 | { |
||
| 32 | $service = self::$locator->get($serviceId); |
||
| 33 | } |
||
| 34 | return $service; |
||
| 35 | } |
||
| 50 |