From 0ffcf27e065219da5720b4361d8528e1a63fc643 Mon Sep 17 00:00:00 2001 From: Stefan Matei Date: Thu, 26 Sep 2019 15:31:18 +0300 Subject: [PATCH] Change TokenStorage with TokenStorageInterface --- src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php b/src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php index 15943c7..bcfee02 100644 --- a/src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php +++ b/src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php @@ -6,7 +6,7 @@ use DataDog\AuditBundle\Entity\AuditLog; use DataDog\AuditBundle\Entity\Association; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; +use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Role\SwitchUserRole; use Symfony\Component\Security\Core\User\UserInterface; @@ -29,7 +29,7 @@ class AuditSubscriber implements EventSubscriber protected $old; /** - * @var TokenStorage + * @var TokenStorageInterface */ protected $securityTokenStorage; @@ -50,7 +50,7 @@ class AuditSubscriber implements EventSubscriber /** @var UserInterface */ protected $blameUser; - public function __construct(TokenStorage $securityTokenStorage) + public function __construct(TokenStorageInterface $securityTokenStorage) { $this->securityTokenStorage = $securityTokenStorage; }