Переглянути джерело

fixed method call, cosmetic variable rename

Lukas Kahwe Smith 14 роки тому
батько
коміт
661d5d236c

+ 1 - 1
src/Symfony/Component/Security/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);
         }
     }
 }

+ 3 - 3
src/Symfony/Component/Security/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);
     }
 }
 

+ 3 - 3
src/Symfony/Component/Security/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);
     }
 }