@@ -40,8 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | return self::$container->has($serviceId) ? |
| 42 | 42 | // A public service will be found in the container. |
| 43 | - self::$container->get($serviceId) : |
|
| 44 | - // If not found in the container, then look in the service locator. |
|
| 43 | + self::$container->get($serviceId) : // If not found in the container, then look in the service locator. |
|
| 45 | 44 | (self::$locator !== null && self::$locator->has($serviceId) ? |
| 46 | 45 | self::$locator->get($serviceId) : null); |
| 47 | 46 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function process(ContainerBuilder $container) |
| 17 | 17 | {
|
| 18 | - if(!$container->hasDefinition('lagdo.facades.service_locator'))
|
|
| 18 | + if (!$container->hasDefinition('lagdo.facades.service_locator'))
|
|
| 19 | 19 | {
|
| 20 | 20 | return; |
| 21 | 21 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | // Append the tagged services to the service locator first argument. |
| 26 | 26 | $locatedServices = $serviceLocatorDefinition->getArguments()[0] ?? []; |
| 27 | 27 | $services = $container->findTaggedServiceIds('lagdo.facades.service');
|
| 28 | - foreach(array_keys($services) as $service) |
|
| 28 | + foreach (array_keys($services) as $service) |
|
| 29 | 29 | {
|
| 30 | 30 | $locatedServices[$service] = new Reference($service); |
| 31 | 31 | } |