-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.4] Make RequestGuard Macroable #19569
Conversation
use Illuminate\Support\Traits\Macroable;
Tests ? |
src/Illuminate/Auth/RequestGuard.php
Outdated
|
||
class RequestGuard implements Guard | ||
{ | ||
use GuardHelpers; | ||
use GuardHelpers,Macroable; |
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.
Needs a space after the comma
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.
psr-2 says There MUST be one use keyword per declaration
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.
True @BrandonShar but in this case this is not a declaration.
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.
doh, read too fast!
Could do with a better title for the PR! |
Thank you, my English is not good, sorry. I am going to optimize the code tomorrow, I am now 1 o'clock now. I was doing api internal call need to expand some of the methods and found that not like SessionGuard, I Pull Request reasonable? |
for RequestGuard Class use Illuminate\Support\Traits\Macroable;
Similar to SessionGuard Class,Allows RequestGuard Class expansion Method.