-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Autowiring and factories are incompatible with each others #22258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nicolas-grekas
commented
Apr 3, 2017
Q | A |
---|---|
Branch? | 2.8 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
@@ -284,6 +284,10 @@ private function getReflectionClass($id, Definition $definition) | |||
return $this->reflectionClasses[$id]; | |||
} | |||
|
|||
if ($definition->getFactory() || $definition->getFactoryClass(false) || $definition->getFactoryService(false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be moved at the beginning of completeDefinition
instead ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, done
554bdd2
to
9b60163
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you @nicolas-grekas. |
…thers (nicolas-grekas) This PR was merged into the 2.8 branch. Discussion ---------- [DI] Autowiring and factories are incompatible with each others | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 9b60163 [DI] Autowiring and factories are incompatible with each others