Skip to content

[DependencyInjection] Show how to get $myService #17398

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

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

tacman
Copy link
Contributor

@tacman tacman commented Oct 25, 2022

Fixes #17397, makes it clearer how to get the service, since ->get() isn't correct and getDefinition() isn't obvious.

@carsonbot carsonbot changed the title Show how to get $myService [DependencyInjection] Show how to get $myService Oct 26, 2022
@javiereguiluz javiereguiluz added this to the 4.4 milestone Oct 26, 2022
@javiereguiluz
Copy link
Member

Thank you @tacman.

@javiereguiluz javiereguiluz merged commit 68e48b0 into symfony:4.4 Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants