-
Notifications
You must be signed in to change notification settings - Fork 3
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
DI\DependencyException for Proxied Class #71
Comments
I had today the same issue with an other Class: GroupService I think i now know the reason for this issue.
The Problem gets resolved if i define both GroupService and GroupService__AopProxied like this:
It seems to work but its not a great solution because now i have to do this each time i use an Attribute in one of the classes i defined the definitions for in code. |
I had again a similar case but a little different. I have a class When calling the constructor of My guess is that it has something to do with the SignUpConditions not being Proxied, but i am not sure. @WalterWoshid do you have an idea about these issues? |
Hi there, it was difficult trying to reproduce it, but I found some other errors. After a lot of thought and stupid luck, I removed all the type replacement logic and what a wonder, every test still worked. I think that might have fixed all your DI problems. I added some tests that looked similar to your code, they also work. Try version |
I have a Class
GroupMemberService
which is Proxied by php-aop.In its constructor the class
GroupPolicy
is passed which is also proxied.I use DI to inject the constructor params.
This error occurs when i try to get
GroupMemberService
from the DI Service:The text was updated successfully, but these errors were encountered: