| Conditions | 4 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | return self::$container->get($serviceId); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var ServiceLocator |
||
| 40 | */ |
||
| 41 | $locator = self::$container->get('lagdo.facades.service_locator', |
||
| 42 | ContainerInterface::NULL_ON_INVALID_REFERENCE); |
||
| 43 | // If not found in the container, then look in the service locator. |
||
| 44 | return ($locator !== null && $locator->has($serviceId)) ? $locator->get($serviceId) : null; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |