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
will create a service named '@foo_collection', which is prone to errors (no namespace etc.). Upcoming symfony versions propose or use alread the FQCN as service-id, which makes it unique.
I would not force it, but suggest it in the docs. F.e. I prefer to have a UserCollection or UserRepository interface and use that as service id instead of the concrete implementation.
AFAIK are FQCN as service ids not yet widely used. Therefore forcing it would IMHO be hard and an unnecessary hurdle.
But I have nothing against making the repository_class optional. Less necessary configuration is (mostly) good :-)
I propose to use a different naming for the repositories.
Given:
will create a service named '@foo_collection', which is prone to errors (no namespace etc.). Upcoming symfony versions propose or use alread the FQCN as service-id, which makes it unique.
So a new configuration could look like:
There we enforce the FQCN for once as service-id, which is at the same time the repositoryclass.
I'm not sure if we should give it as "hint" in the docs, or enforcing it by omitting the 'repository_class' key, enforcing the use of FQCN.
What are your thoughts?
The text was updated successfully, but these errors were encountered: