Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
-
Symfony version(s) affected5.4 DescriptionInject a dependency in a custom validator results in a dependency injection error. How to reproduce
Possible SolutionNo response Additional ContextNo response |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Replies: 1 comment 6 replies
-
I don't know how you construct the |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can you create a small example application that allows to reproduce your issue? |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Apparently in a brand new project this doesn't happen so probably something related to the config in my other project. I guess this can be closed :) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi@juanwilde Did you manage to get this fixed? I thought i ran in to the same problem.. In my case it was a Case mismatch between loaded and declared class names.
Once i resolved that Di started to work. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi@LauLaman. The problem in the end was that we were injecting |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I had the same error, but the reason was that I accidentally added the |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #53697 on January 31, 2024 11:20.