Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerbaptiste committed Mar 28, 2017
1 parent ac99c85 commit a3759ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Admin/AclAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
use Symfony\Component\Security\Acl\Permission\MaskBuilder;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\Role\RoleHierarchy;
use Symfony\Component\Security\Core\Role\RoleInterface;
use Symfony\Component\Security\Core\SecurityContextInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

/**
* Admin extension filtering the list.
Expand Down Expand Up @@ -55,9 +55,9 @@ public function __construct(
array $roleHierarchy = array()
) {
if (!$tokenStorage instanceof TokenStorageInterface && !$tokenStorage instanceof SecurityContextInterface) {
throw new \InvalidArgumentException('$tokenStorage must be an instance of Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface or Symfony\Component\Security\Core\SecurityContextInterface.');
throw new \InvalidArgumentException('$tokenStorage must be an instance of Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface or Symfony\Component\Security\Core\SecurityContextInterface.');
}

$this->tokenStorage = $tokenStorage;
$this->databaseConnection = $databaseConnection;
$this->roleHierarchy = new RoleHierarchy($roleHierarchy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ interface_exists('Symfony\Component\Security\Core\Authentication\Token\Storage\T
: 'security.context'
)
)
;
;
}
}

0 comments on commit a3759ad

Please sign in to comment.