浏览代码

[Security] Fixed missed argument in call custom handler when authentication is successful.

Deni 14 年之前
父节点
当前提交
657f90a931
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

@@ -229,7 +229,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
         }
 
         if (null !== $this->successHandler) {
-            $response = $this->successHandler->onAuthenticationSuccess($request, $token);
+            $response = $this->successHandler->onAuthenticationSuccess($event, $request, $token);
         } else {
             $response = new Response();
             $path = $this->determineTargetUrl($request);