Skip to content

Commit

Permalink
Merge pull request #16 from VegardSkui/master
Browse files Browse the repository at this point in the history
Change dependency from JWT to JWTAuth to work with newer version
  • Loading branch information
irazasyed committed Mar 19, 2016
2 parents f0c4373 + e14e5da commit f02b225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/JwtAuthGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Irazasyed\JwtAuthGuard;

use Tymon\JWTAuth\JWT;
use Tymon\JWTAuth\JWTAuth;
use Illuminate\Http\Request;
use Illuminate\Auth\GuardHelpers;
use Illuminate\Contracts\Auth\Guard;
Expand All @@ -23,7 +23,7 @@ class JwtAuthGuard implements Guard
/**
* The JWT instance.
*
* @var \Tymon\JWTAuth\JWT
* @var \Tymon\JWTAuth\JWTAuth
*/
protected $jwt;

Expand All @@ -37,11 +37,11 @@ class JwtAuthGuard implements Guard
/**
* Create a new authentication guard.
*
* @param \Tymon\JWTAuth\JWT $jwt
* @param \Tymon\JWTAuth\JWTAuth $jwt
* @param \Illuminate\Contracts\Auth\UserProvider $provider
* @param \Illuminate\Http\Request $request
*/
public function __construct(JWT $jwt, UserProvider $provider, Request $request)
public function __construct(JWTAuth $jwt, UserProvider $provider, Request $request)
{
$this->jwt = $jwt;
$this->provider = $provider;
Expand Down
2 changes: 1 addition & 1 deletion src/JwtAuthGuardServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function boot()
{
$this->app['auth']->extend('jwt-auth', function ($app, $name, array $config) {
$guard = new JwtAuthGuard(
$app['tymon.jwt'],
$app['tymon.jwt.auth'],
$app['auth']->createUserProvider($config['provider']),
$app['request']
);
Expand Down

0 comments on commit f02b225

Please sign in to comment.