Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Add documentation for using expressions as service factories#16516
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
javiereguiluz commentedMar 11, 2022
Closing because the related code PR (symfony/symfony#45447) was closed without merging. |
jvasseur commentedMar 21, 2022
The code PR was replaced bysymfony/symfony#45512 which is still opened so this PR could still be relevant. |
nicolas-grekas commentedMar 28, 2022
Code PR has been merged, time to finish this one! |
| Expressions can be used in ``arguments``, ``properties``, as arguments with | ||
| ``configurator`` and as arguments to ``calls`` (method calls). | ||
| You can also use expressions as factories to create services based on an expression: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What about shortening this toYou can also use expressions as service factories:
nicolas-grekas commentedMar 28, 2022
We should also tell about the args/arg() var/function btw. |
jvasseur commentedApr 13, 2022
I've update the PR to mention the |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
wouterj commentedMay 1, 2022
jvasseur commentedMay 2, 2022
@wouterj thanks for merging, the updated examples looks really good with the associated explanations. |
wkania commentedMay 3, 2022
xabbuh commentedJun 9, 2022
FTR, that was fixed inda91570. |
Uh oh!
There was an error while loading.Please reload this page.
Doc PR forsymfony/symfony#45512