Skip to content

Commit

Permalink
Merge pull request #576 from arsthanea/fix/authorization-checker
Browse files Browse the repository at this point in the history
[AdminBundle] use `AuthorizationChecker` interface instead of a concrete implementation
  • Loading branch information
Roderik van der Veer committed Jul 20, 2015
2 parents 2fc2c8c + d977f20 commit 406d85c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace Kunstmaan\AdminBundle\EventListener;

use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfony\Component\HttpKernel\Controller\ControllerResolver;
use Symfony\Component\Routing\RouterInterface as Router;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as TokenStorage;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface as AuthorizationChecker;
use Symfony\Component\HttpFoundation\Session\Session;

/**
Expand Down Expand Up @@ -42,7 +40,7 @@ class PasswordCheckListener
* @param Router $router
* @param Session $session
*/
function __construct(AuthorizationChecker $authorizationChecker, TokenStorage $tokenStorage, Router $router, Session $session)
public function __construct(AuthorizationChecker $authorizationChecker, TokenStorage $tokenStorage, Router $router, Session $session)
{
$this->authorizationChecker = $authorizationChecker;
$this->tokenStorage = $tokenStorage;
Expand Down

0 comments on commit 406d85c

Please sign in to comment.