Skip to content

Commit

Permalink
set user resolver for request in shouldUse
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 23, 2016
1 parent 1576199 commit bf5303f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Auth/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public function getDefaultDriver()
public function shouldUse($name)
{
return $this->setDefaultDriver($name);

This comment has been minimized.

Copy link
@duxet

duxet May 28, 2016

WTF

This comment has been minimized.

Copy link
@taylorotwell

taylorotwell May 28, 2016

Author Member

Problem?

This comment has been minimized.

Copy link
@crynobone

crynobone May 28, 2016

Member

Line 196 already has return?

This comment has been minimized.

Copy link
@duxet

duxet May 28, 2016

What's the point of placing code after return statement? 🙃

edit: it's already fixed in 5b88244 👍

This comment has been minimized.

Copy link
@taylorotwell

taylorotwell via email May 28, 2016

Author Member
$this->userResolver = function ($name = null) {
return $this->guard($name)->user();
};
}

/**
Expand Down

0 comments on commit bf5303f

Please sign in to comment.