[Security] remove unused logger
This commit is contained in:
parent
62de9c1f19
commit
a33cc51648
@ -206,7 +206,6 @@
|
|||||||
<argument type="service" id="security.access.decision_manager" />
|
<argument type="service" id="security.access.decision_manager" />
|
||||||
<argument type="service" id="security.access_map" />
|
<argument type="service" id="security.access_map" />
|
||||||
<argument type="service" id="security.authentication.manager" />
|
<argument type="service" id="security.authentication.manager" />
|
||||||
<argument type="service" id="logger" on-invalid="null" />
|
|
||||||
</service>
|
</service>
|
||||||
</services>
|
</services>
|
||||||
</container>
|
</container>
|
||||||
|
@ -15,7 +15,6 @@ use Symfony\Component\Security\Core\SecurityContextInterface;
|
|||||||
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
|
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
|
||||||
use Symfony\Component\Security\Http\AccessMapInterface;
|
use Symfony\Component\Security\Http\AccessMapInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
|
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
|
||||||
use Psr\Log\LoggerInterface;
|
|
||||||
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
||||||
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
|
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
|
||||||
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||||
@ -31,15 +30,13 @@ class AccessListener implements ListenerInterface
|
|||||||
private $accessDecisionManager;
|
private $accessDecisionManager;
|
||||||
private $map;
|
private $map;
|
||||||
private $authManager;
|
private $authManager;
|
||||||
private $logger;
|
|
||||||
|
|
||||||
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager, LoggerInterface $logger = null)
|
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager)
|
||||||
{
|
{
|
||||||
$this->context = $context;
|
$this->context = $context;
|
||||||
$this->accessDecisionManager = $accessDecisionManager;
|
$this->accessDecisionManager = $accessDecisionManager;
|
||||||
$this->map = $map;
|
$this->map = $map;
|
||||||
$this->authManager = $authManager;
|
$this->authManager = $authManager;
|
||||||
$this->logger = $logger;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user