Skip to content

Commit 7c2c121

Browse files
committed
merged branch Tobion/security-fix-typo (PR #9069)
This PR was merged into the 2.2 branch. Discussion ---------- [Security] fix typo and remove unused logger | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- a33cc51 [Security] remove unused logger 62de9c1 [Security] fix typo
2 parents e77a699 + 5fc1968 commit 7c2c121

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Firewall/AccessListener.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
1616
use Symfony\Component\Security\Http\AccessMapInterface;
1717
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
18-
use Psr\Log\LoggerInterface;
1918
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
2019
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
2120
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
@@ -31,15 +30,13 @@ class AccessListener implements ListenerInterface
3130
private $accessDecisionManager;
3231
private $map;
3332
private $authManager;
34-
private $logger;
3533

36-
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager, LoggerInterface $logger = null)
34+
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager)
3735
{
3836
$this->context = $context;
3937
$this->accessDecisionManager = $accessDecisionManager;
4038
$this->map = $map;
4139
$this->authManager = $authManager;
42-
$this->logger = $logger;
4340
}
4441

4542
/**

FirewallMapInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface FirewallMapInterface
2424
* Returns the authentication listeners, and the exception listener to use
2525
* for the given request.
2626
*
27-
* If there are no authentication listeners, the first inner are must be
27+
* If there are no authentication listeners, the first inner array must be
2828
* empty.
2929
*
3030
* If there is no exception listener, the second element of the outer array

0 commit comments

Comments
 (0)