From e0cc125907b1bf14b97ba2112cd589229e2b187c Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 25 Jul 2020 02:07:46 +0000 Subject: [PATCH] [SECURITY] Small refactor in Authenticator.php, to remove unused services --- src/Security/Authenticator.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Security/Authenticator.php b/src/Security/Authenticator.php index ded2e461d4..69a45dcfcb 100644 --- a/src/Security/Authenticator.php +++ b/src/Security/Authenticator.php @@ -23,7 +23,6 @@ use App\Core\DB\DB; use function App\Core\I18n\_m; use App\Entity\User; use App\Util\Nickname; -use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; @@ -54,13 +53,11 @@ class Authenticator extends AbstractFormLoginAuthenticator public const LOGIN_ROUTE = 'login'; - private $entityManager; private $urlGenerator; private $csrfTokenManager; - public function __construct(EntityManagerInterface $entityManager, UrlGeneratorInterface $urlGenerator, CsrfTokenManagerInterface $csrfTokenManager) + public function __construct(UrlGeneratorInterface $urlGenerator, CsrfTokenManagerInterface $csrfTokenManager) { - $this->entityManager = $entityManager; $this->urlGenerator = $urlGenerator; $this->csrfTokenManager = $csrfTokenManager; }