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] Fix conflicting FQCN aliases with route name#52805
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
[Routing] Fix conflicting FQCN aliases with route name#52805
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.
| useSymfony\Component\Routing\Attribute\Route; | ||
| #[Route(path:'/foobarccc', name:self::class)] |
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 added only this test fixture case but the 3 FQCN aliases are susceptible to fail.
3c02106 tobb04dd5CompareUh oh!
There was an error while loading.Please reload this page.
bb04dd5 to96a0d41Compare96a0d41 to18494c8Comparenicolas-grekas commentedNov 29, 2023
Thank you@fancyweb. |
When the route name === the FQCN alias we want to add,
addAlias()throws. In this case, we can safely ignore the exception and move on.