Skip to content

Commit

Permalink
fix use Authentication Facade
Browse files Browse the repository at this point in the history
  • Loading branch information
andregaldino committed Oct 18, 2016
1 parent bd6de82 commit 81354a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Services/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ public function check()
private function executeAuthMethod($method)
{
foreach ($this->authentication as $auth) {
if ($data = $auth->{$method}()) {
return $data;
if (is_callable([$auth, $method], true, $callable_name)) {
if ($data = call_user_func($callable_name)) {
return $data;
}
}
}

Expand Down

0 comments on commit 81354a6

Please sign in to comment.