소스 검색

[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.