Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Router] Skip anonymous classes when loading annotated routes#25801
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
e016c78 to91c878eComparee6cb583 to3a272b2Compare| // Skip usage of ::class constant | ||
| $isClassConstant =false; | ||
| // Skip usage of ::class constant and anonymous classes | ||
| $isValidClass =true; |
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.
Not sure about this variable name ->$isValidClass because an anonymous class is a valid 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 was mostly trying to avoid usingisClassConstantOrAnonymousClass andisValidClass is the first thing that came to mind. I'll change it to something more reasonable
nicolas-grekas commentedJan 16, 2018
Thank you@pierredup. |
…tes (pierredup)This PR was squashed before being merged into the 2.7 branch (closes#25801).Discussion----------[Router] Skip anonymous classes when loading annotated routes| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#25796| License | MIT| Doc PR |Skip any usage of anonymous classes when parsing files in `AnnotationFileLoader`Commits-------d76a545 [Router] Skip anonymous classes when loading annotated routes
Uh oh!
There was an error while loading.Please reload this page.
Skip any usage of anonymous classes when parsing files in
AnnotationFileLoader