diff options
author | Lukas Kahwe Smith <smith@pooteeweet.org> | 2011-02-02 15:24:18 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-02-04 00:32:15 +0100 |
commit | 711ab84f4d4d4d1c313a25898a18c7284f2e33ee (patch) | |
tree | 9c44b4730c690d3e6e46272207685465c5e0dbab | |
parent | 081067353f295422735c7eb62cb25cd9df05e1c4 (diff) | |
download | symfony-security-711ab84f4d4d4d1c313a25898a18c7284f2e33ee.zip symfony-security-711ab84f4d4d4d1c313a25898a18c7284f2e33ee.tar.gz symfony-security-711ab84f4d4d4d1c313a25898a18c7284f2e33ee.tar.bz2 |
fixed method call, cosmetic variable rename
-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); } } |