-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Autoconfigure instances of ArgumentValueResolverInterface #23719
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
Conversation
This is a new feature so it must target 3.4. |
Ah rats, I was in two minds about if this constituted a new feature or a bug. I leant towards bug for 3.3.x as I hoped this could be interpreted as "it should have been there at the start but it was missed". What do you reckon @weaverryan? |
@BPScott Even if it should have been part of 3.3, we missed that and Symfony is perfectly usable without it. So, that qualifies as a new feature. |
Add the controller.argument_value_resolver tag to instances of ArgumentValueResolverInterface
Thank you @BPScott. |
…ace (BPScott) This PR was merged into the 3.4 branch. Discussion ---------- Autoconfigure instances of ArgumentValueResolverInterface | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23701 | License | MIT | Doc PR | n/a Autoconfigure instances of `Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface` so they get the `controller.argument_value_resolver` tag automatically added to them. This avoids avoid having to tag each resolver or add an `_instanceof` configuration such as ```yaml _instanceof: Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface: tags: [controller.argument_value_resolver] ``` Commits ------- ee4dc20 Autoconfigure instances of ArgumentValueResolverInterface
Autoconfigure instances of
Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface
so they get thecontroller.argument_value_resolver
tag automatically added to them.This avoids avoid having to tag each resolver or add an
_instanceof
configuration such as