-
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.5] Possibility to specify default user provider and passing user provider in RequestGuard callback #18856
[5.5] Possibility to specify default user provider and passing user provider in RequestGuard callback #18856
Conversation
$config = $this->app['config']['auth.providers.'.$provider]; | ||
$driver = array_get($config, 'driver'); |
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.
Would you mind replacing all array_*()
with with Arr::*()
?
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.
Of course. But would you mind to explain difference? In many places used global array helper functions.
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.
Sure! Using Laravel's helper function makes this component (Auth
) dependant on the framework and can't be used as a standalone component. It's a common practise across the framework's codebase.
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.
Thanks.
Can you describe what the actual goal is here? |
I just think this will be better.
|
Can you provide a before / after example of what this makes easier for end users? |
…r in request guard callback
Ill try)
|
Some small refactoring.
Illuminate\Auth\SessionGuard
toIlluminate\Auth\GuardHelpers
.