@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | public function __construct(ServiceResolver $serviceResolver = null) |
29 | 29 | { |
30 | - $this->serviceResolver = (null === $serviceResolver)? new ServiceResolver(): $serviceResolver; |
|
30 | + $this->serviceResolver = (null === $serviceResolver) ? new ServiceResolver() : $serviceResolver; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -109,7 +109,7 @@ |
||
109 | 109 | $serviceId = ($service instanceof DecorationInterface) ? $service->getDecoration()[0] : $service->getName(); |
110 | 110 | $application->singleton( |
111 | 111 | $serviceId, |
112 | - function () use ($instantiator, $service) { |
|
112 | + function() use ($instantiator, $service) { |
|
113 | 113 | return $instantiator->create($service); |
114 | 114 | } |
115 | 115 | ); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $resourcePath = (function_exists('resource_path')) |
32 | 32 | ? resource_path('providers') |
33 | - : app('path').DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'providers' |
|
33 | + : app('path') . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'providers' |
|
34 | 34 | ; |
35 | 35 | |
36 | 36 | $rootDir = new FileLocator($resourcePath); |
@@ -98,6 +98,11 @@ |
||
98 | 98 | $container->addService($serviceDefinition); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $id |
|
103 | + * @param string $class |
|
104 | + * @param string $fileName |
|
105 | + */ |
|
101 | 106 | private function createService($id, $class, array $arguments, array $autowiringTypes, array $tags, $fileName) |
102 | 107 | { |
103 | 108 | $serviceDefinition = new Service($id, $class, $arguments, $autowiringTypes, $tags); |