浏览代码

[Security/Core] force implementations to accept null values

Johannes Schmitt 14 年之前
父节点
当前提交
192592ec9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/Security/Core/SecurityContextInterface.php

+ 1 - 1
src/Symfony/Component/Security/Core/SecurityContextInterface.php

@@ -28,7 +28,7 @@ interface SecurityContextInterface
      * @param TokenInterface $token
      * @return void
      */
-    function setToken(TokenInterface $token);
+    function setToken(TokenInterface $token = null);
 
     /**
      * Checks if the attributes are granted against the current authentication token and optionally supplied object.