From a3759ad4f8661f046ddf7eda7c70278aa29c72ae Mon Sep 17 00:00:00 2001 From: meyerbaptiste Date: Tue, 28 Mar 2017 15:50:11 +0200 Subject: [PATCH] Fix CS --- Admin/AclAdminExtension.php | 6 +++--- .../CoopTilleulsAclSonataAdminExtensionExtension.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/AclAdminExtension.php b/Admin/AclAdminExtension.php index 0941ae6..59e929e 100644 --- a/Admin/AclAdminExtension.php +++ b/Admin/AclAdminExtension.php @@ -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. @@ -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); diff --git a/DependencyInjection/CoopTilleulsAclSonataAdminExtensionExtension.php b/DependencyInjection/CoopTilleulsAclSonataAdminExtensionExtension.php index 0393116..81fa5a7 100644 --- a/DependencyInjection/CoopTilleulsAclSonataAdminExtensionExtension.php +++ b/DependencyInjection/CoopTilleulsAclSonataAdminExtensionExtension.php @@ -42,6 +42,6 @@ interface_exists('Symfony\Component\Security\Core\Authentication\Token\Storage\T : 'security.context' ) ) - ; + ; } }