Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Do not autowire factory arguments (new factory definition syntax)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirka Koutny committed Dec 23, 2014
1 parent 9811e5b commit 7c8db45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutowiringCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function process(ContainerBuilder $containerBuilder)
continue;
}

if ($definition->getFactoryClass() || $definition->getFactoryMethod()) {
if ($definition->getFactoryClass() || $definition->getFactoryMethod() || (method_exists($definition, 'getFactory') && $definition->getFactory())) {
continue;
}

Expand Down

0 comments on commit 7c8db45

Please sign in to comment.