Skip to content

Commit

Permalink
bug #618 Use the JWTTokenManagerInterface (trsteel88)
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 authored and chalasr committed Mar 23, 2019
1 parent f5339c9 commit 0d7062f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Security/Http/Authentication/AuthenticationSuccessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Lexik\Bundle\JWTAuthenticationBundle\Event\AuthenticationSuccessEvent;
use Lexik\Bundle\JWTAuthenticationBundle\Events;
use Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationSuccessResponse;
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTManager;
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
Expand All @@ -19,21 +19,10 @@
*/
class AuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
{
/**
* @var JWTManager
*/
protected $jwtManager;

/**
* @var EventDispatcherInterface
*/
protected $dispatcher;

/**
* @param JWTManager $jwtManager
* @param EventDispatcherInterface $dispatcher
*/
public function __construct(JWTManager $jwtManager, EventDispatcherInterface $dispatcher)
public function __construct(JWTTokenManagerInterface $jwtManager, EventDispatcherInterface $dispatcher)
{
$this->jwtManager = $jwtManager;
$this->dispatcher = $dispatcher;
Expand Down

0 comments on commit 0d7062f

Please sign in to comment.