src/League/ServiceServiceProvider.php 1 location
|
@@ 85-93 (lines=9) @@
|
| 82 |
|
* |
| 83 |
|
* @return \Closure |
| 84 |
|
*/ |
| 85 |
|
private function createFactoryFactory(ServiceDefinition $definition) |
| 86 |
|
{ |
| 87 |
|
return function () use ($definition) { |
| 88 |
|
$className = $definition->getClass(); |
| 89 |
|
$factory = new $className(); |
| 90 |
|
|
| 91 |
|
return $factory(...$this->resolveArguments($definition->getArguments())); |
| 92 |
|
}; |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
/** |
| 96 |
|
* @param array $arguments |
src/Pimple/PimpleContainerAdapter.php 1 location
|
@@ 85-93 (lines=9) @@
|
| 82 |
|
* |
| 83 |
|
* @return \Closure |
| 84 |
|
*/ |
| 85 |
|
private function createFactoryFactory(ServiceDefinition $definition) |
| 86 |
|
{ |
| 87 |
|
return function () use ($definition) { |
| 88 |
|
$className = $definition->getClass(); |
| 89 |
|
$factory = new $className(); |
| 90 |
|
|
| 91 |
|
return $factory(...$this->resolveArguments($definition->getArguments())); |
| 92 |
|
}; |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
/** |
| 96 |
|
* @param ServiceDefinition $definition |