Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
merged 1 commit into from
Aug 3, 2017
Merged

Autoconfigure instances of ArgumentValueResolverInterface #23719

merged 1 commit into from
Aug 3, 2017

Conversation

BPScott
Copy link
Contributor

@BPScott BPScott commented Jul 30, 2017

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

_instanceof:
    Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface:
        tags: [controller.argument_value_resolver]

@chalasr
Copy link
Member

chalasr commented Jul 31, 2017

This is a new feature so it must target 3.4.

@BPScott
Copy link
Contributor Author

BPScott commented Jul 31, 2017

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?

@fabpot
Copy link
Member

fabpot commented Aug 1, 2017

@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
@BPScott BPScott changed the base branch from 3.3 to 3.4 August 1, 2017 09:21
@BPScott
Copy link
Contributor Author

BPScott commented Aug 1, 2017

Thank you for the clarification @chalasr and @fabpot, I'll keep that in mind for any future PRs.

I've rebased and retargeted this PR to 3.4

@nicolas-grekas
Copy link
Member

Thank you @BPScott.

@nicolas-grekas nicolas-grekas merged commit ee4dc20 into symfony:3.4 Aug 3, 2017
nicolas-grekas added a commit that referenced this pull request Aug 3, 2017
…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
This was referenced Oct 18, 2017
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.

8 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.