You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed this instruction to create a validator service.
I followed this document to make the service of prototype scope.
Here is the line I think that cause the problem.
Sorry for my English! This is the first time I rise a bug for Symfony.
The text was updated successfully, but these errors were encountered:
The fact that the validator is loading constraint validators lazily indeed does not mean it loads them everytime to support scoped dependencies. This would either decrease performance for the common or would be a pain to manage.
If the loading was not lazy, the container would throw an exception when injecting the prototype-scoped service btw.
Problem: The validator service that has prototype scope is not created multiple times. So the number of instances is always 1.
How to reproduce:
You can also run this command to test
I followed this instruction to create a validator service.
I followed this document to make the service of prototype scope.
Here is the line I think that cause the problem.
Sorry for my English! This is the first time I rise a bug for Symfony.
The text was updated successfully, but these errors were encountered: