forked from GNUsocial/gnu-social
[SECURITY] Small refactor in Authenticator.php, to remove unused services
This commit is contained in:
parent
f081d58e2b
commit
60002df680
@ -23,7 +23,6 @@ use App\Core\DB\DB;
|
|||||||
use function App\Core\I18n\_m;
|
use function App\Core\I18n\_m;
|
||||||
use App\Entity\User;
|
use App\Entity\User;
|
||||||
use App\Util\Nickname;
|
use App\Util\Nickname;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
|
||||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||||
@ -54,13 +53,11 @@ class Authenticator extends AbstractFormLoginAuthenticator
|
|||||||
|
|
||||||
public const LOGIN_ROUTE = 'login';
|
public const LOGIN_ROUTE = 'login';
|
||||||
|
|
||||||
private $entityManager;
|
|
||||||
private $urlGenerator;
|
private $urlGenerator;
|
||||||
private $csrfTokenManager;
|
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->urlGenerator = $urlGenerator;
|
||||||
$this->csrfTokenManager = $csrfTokenManager;
|
$this->csrfTokenManager = $csrfTokenManager;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user