Skip to content

[Routing] Fix loading multiple class annotations for invokable classes #26899

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
Apr 17, 2018

Conversation

1ed
Copy link
Contributor

@1ed 1ed commented Apr 12, 2018

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR -

The support for full route definition for invokable controllers as class annotation was introduced by
#2172, but that works with one route only, which is inconsistent with how @Route works at other places. This PR adds support for multiple class annotations for invokable controllers and fixes the inconsistency.

@1ed 1ed force-pushed the fix-multiple-class-route-annotation branch from cad90e3 to 2a9c668 Compare April 12, 2018 09:01
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 12, 2018
@fabpot
Copy link
Member

fabpot commented Apr 17, 2018

Thank you @1ed.

@fabpot fabpot merged commit 2a9c668 into symfony:3.4 Apr 17, 2018
fabpot added a commit that referenced this pull request Apr 17, 2018
…able classes (1ed)

This PR was merged into the 3.4 branch.

Discussion
----------

[Routing] Fix loading multiple class annotations for invokable classes

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | -

The support for full route definition for invokable controllers as class annotation was introduced by
#2172, but that works with one route only, which is inconsistent with how `@Route` works at other places. This PR adds support for multiple class annotations for invokable controllers and fixes the inconsistency.

<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
 - Bug fixes must be submitted against the lowest branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against the master branch.
-->

Commits
-------

2a9c668 [Routing] Fix loading multiple class annotations for invokable classes
This was referenced Apr 30, 2018
@1ed 1ed deleted the fix-multiple-class-route-annotation branch June 9, 2018 12:32
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