src/Pimple/PimpleContainerAdapter.php 1 location
|
@@ 100-108 (lines=9) @@
|
97 |
|
* |
98 |
|
* @return Closure |
99 |
|
*/ |
100 |
|
private function createFactoryFactory(ServiceDefinition $definition) |
101 |
|
{ |
102 |
|
return function () use ($definition) { |
103 |
|
$className = $definition->getClass(); |
104 |
|
$factory = new $className(); |
105 |
|
|
106 |
|
return $factory(...$this->resolveArguments($definition->getArguments())); |
107 |
|
}; |
108 |
|
} |
109 |
|
|
110 |
|
/** |
111 |
|
* @param ServiceDefinition $definition |
src/League/ServiceServiceProvider.php 1 location
|
@@ 108-116 (lines=9) @@
|
105 |
|
* |
106 |
|
* @return \Closure |
107 |
|
*/ |
108 |
|
private function createFactoryFactory(ServiceDefinition $definition) |
109 |
|
{ |
110 |
|
return function () use ($definition) { |
111 |
|
$className = $definition->getClass(); |
112 |
|
$factory = new $className(); |
113 |
|
|
114 |
|
return $factory(...$this->resolveArguments($definition->getArguments())); |
115 |
|
}; |
116 |
|
} |
117 |
|
|
118 |
|
/** |
119 |
|
* @param array $arguments |