Skip to content

Commit eb0c9b3

Browse files
authored
Improve FactoryResolver (#5541)
1 parent 6fe1357 commit eb0c9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resolver/FactoryResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function resolve(DefinitionInterface $definition, array $parameters = [])
4242
if (is_string($callable)) {
4343
$callable = $this->container->get($callable);
4444
}
45-
return $callable($this->container);
45+
return $callable($this->container, $parameters);
4646
} catch (NotCallableException $e) {
4747
// Custom error message to help debugging
4848
if (is_string($callable) && class_exists($callable) && method_exists($callable, '__invoke')) {

0 commit comments

Comments
 (0)