瀏覽代碼

Merge branch 'interactive-login-event' of git://github.com/yethee/symfony into security

Johannes M. Schmitt 14 年之前
父節點
當前提交
ede59926a4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php

+ 2 - 1
src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Security\Http\Event;
 
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\EventDispatcher\Event;
+use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
 
 class InteractiveLoginEvent extends Event
 {
@@ -20,7 +21,7 @@ class InteractiveLoginEvent extends Event
 
     private $authenticationToken;
 
-    public function __construct(Request $request, $authenticationToken)
+    public function __construct(Request $request, TokenInterface $authenticationToken)
     {
         $this->request = $request;
         $this->authenticationToken = $authenticationToken;