diff options
-rw-r--r-- | Http/Firewall/BasicAuthenticationListener.php | 2 | ||||
-rw-r--r-- | Http/Firewall/DigestAuthenticationListener.php | 6 | ||||
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php index 98443e9..710d184 100644 --- a/Http/Firewall/BasicAuthenticationListener.php +++ b/Http/Firewall/BasicAuthenticationListener.php @@ -109,7 +109,7 @@ class BasicAuthenticationListener implements ListenerInterface $event->setProcessed(); - return $this->authenticationEntryPoint->start($request, $failed); + return $this->authenticationEntryPoint->start($event, $request, $failed); } } } diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php index bc731b3..ec263a4 100644 --- a/Http/Firewall/DigestAuthenticationListener.php +++ b/Http/Firewall/DigestAuthenticationListener.php @@ -143,15 +143,15 @@ class DigestAuthenticationListener implements ListenerInterface $this->securityContext->setToken(new UsernamePasswordToken($user, $user->getPassword(), $this->providerKey)); } - protected function fail(EventInterface $event, Request $request, AuthenticationException $failed) + protected function fail(EventInterface $event, Request $request, AuthenticationException $authException) { $this->securityContext->setToken(null); if (null !== $this->logger) { - $this->logger->debug($failed); + $this->logger->debug($authException); } - $this->authenticationEntryPoint->start($event, $request, $failed); + $this->authenticationEntryPoint->start($event, $request, $authException); } } diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index 66d56b3..d40b3b5 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -151,12 +151,12 @@ class ExceptionListener implements ListenerInterface return $response; } - protected function startAuthentication(EventInterface $event, Request $request, AuthenticationException $reason) + protected function startAuthentication(EventInterface $event, Request $request, AuthenticationException $authException) { $this->context->setToken(null); if (null === $this->authenticationEntryPoint) { - throw $reason; + throw $authException; } if (null !== $this->logger) { @@ -165,6 +165,6 @@ class ExceptionListener implements ListenerInterface $request->getSession()->set('_security.target_path', $request->getUri()); - return $this->authenticationEntryPoint->start($event, $request, $reason); + return $this->authenticationEntryPoint->start($event, $request, $authException); } } |