Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Routing] Remove duplicate schemes and methods for invokable controllers#29225
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
Uh oh!
There was an error while loading.Please reload this page.
| $globals['path'] =''; | ||
| $globals['name'] =''; | ||
| $globals['localized_paths'] =array(); | ||
| $globals =$this->resetGlobals(); |
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.
please move this call outside the foreach as it does not need to be done foreach annotation
Tobion commentedNov 17, 2018
Could you open this against the 3.4 branch as the bug is also in there. |
Tobion commentedNov 20, 2018
As I said, please open a new PR against 3.4 or rebase this one. In 3.4 it's slightly different as |
claudusd commentedNov 21, 2018
…le controllers (claudusd)This PR was merged into the 3.4 branch.Discussion----------[Routing] Remove duplicate schemes and methods for invokable controllers| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#29225| License | MITThis PR backport for 3.4 branch the same issue than the PR#29225.I add a test to check the fix when annotation are on the class and rename another one when the route annotation is on the invoke method.Commits-------640ccdf [Routing] Remove duplicate schemes and methods for invokable controllers
Hi,
When we use annotation for invokable controller the http's methods and schemes are duplicate in
Routeinstance.This duplicity doesn't make bug but when we use
bin/console debug:routerthe path's method and scheme are print twice.To reproduce :
bin/console debug:router