Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[DependencyInjection] Support@>
as a shorthand for!service_closure
inYamlFileLoader
#59257
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
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.
I appreciate the idea, but I don't like this new symbol.
- It creates an extra way of doing the same thing.
- It's not expressive: impossible to search for these special characters in the doc to understand what they do.
- It looks like thesymbol
@>
in Postgres that is a totally different feature.
...ny/Component/DependencyInjection/Tests/Fixtures/yaml/services_with_short_service_closure.yml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
@>
as a shorthand for!service_closure
in YamlFileLoaderThere 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.
works for me
but let's add test cases with@>?bar
(and make it work)
src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
I'm also not so sure if we need this shortcut. The |
Yet I would not like to have to use |
@>
as a shorthand for!service_closure
in YamlFileLoader@>
as a shorthand for!service_closure
in YamlFileLoaderThere 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.
Ok, if that is convenient.
...ny/Component/DependencyInjection/Tests/Fixtures/yaml/services_with_short_service_closure.yml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…in YamlFileLoader (Issuesymfony#59255)
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.
I fixed the remaining comments and added a line to the changelog of the component.
Thank you@chx. |
a36b981
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
@>
as a shorthand for!service_closure
in YamlFileLoader@>
as a shorthand for!service_closure
inYamlFileLoader
Uh oh!
There was an error while loading.Please reload this page.