Skip to content
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

[RFC][DependencyInjection] Add separate section for named services generated through configuration #20454

Open
codedmonkey opened this issue Dec 7, 2024 · 0 comments

Comments

@codedmonkey
Copy link
Contributor

For certain types of services in Symfony, it's possible to create named/scoped services, examples include:

Those named services can be referenced directly through dependency injection by naming and typing the dependency a certain way or by using the Target attribute. While this is amazing functionality that's already documented in the service container docs in the context of manually specifying service aliases, for the above use-cases it's explained differently for each one, and IMO it's difficult to understand unless you already know what's going on.

Should we make an additional part of the documentation specifically targeted at how to use aliased services that we can link from the above examples? I think this would improve DX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants