-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Inject class by annotation in parent class #274
Comments
Hi, thanks for the report. Are you sure it works with 4.*? Is the parent property private, protected or public? There is #257 that is very similar, but it's only for private properties, and it is both in 4.* and 5.0. |
:) Thanks for quick response. I'm sure, I have a running project based on |
Ok, then is it a private, protected or public property? |
My mistake I forgot to add. All of them are protected. |
OK thanks I'll schedule it for next release. What is weird is that there is a test for this, but maybe it only tests for public methods. |
It's actually a duplicate of #257, closing. |
I noticed a problem with dependency injection by annotation, when injection is in parent class.
To illustrate:
and children with parent:
Let's assume that both
ServiceParent
andServiceChildren
exist and are achievable.serviceParent
is not injected.This issue does not occur in 4.* version.
For injection by constructor, it looks ok:
The text was updated successfully, but these errors were encountered: