Forráskód Böngészése

fixed interfaces problems

Fabien Potencier 14 éve
szülő
commit
836c512585

+ 1 - 1
src/Symfony/Component/Security/Authentication/Provider/AnonymousAuthenticationProvider.php

@@ -53,7 +53,7 @@ class AnonymousAuthenticationProvider implements AuthenticationProviderInterface
     /**
      * {@inheritdoc}
      */
-    public function supports($token)
+    public function supports(TokenInterface $token)
     {
         return $token instanceof AnonymousToken;
     }

+ 7 - 0
src/Symfony/Component/Translation/IdentityTranslator.php

@@ -37,6 +37,13 @@ class IdentityTranslator implements TranslatorInterface
     {
     }
 
+    /**
+     * {@inheritdoc}
+     */
+    public function getLocale()
+    {
+    }
+
     /**
      * {@inheritdoc}
      */