瀏覽代碼

Add getTokenStorage

jmontoyaa 8 年之前
父節點
當前提交
31e636e9a5
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/Chamilo/CoreBundle/Framework/Container.php

+ 8 - 0
src/Chamilo/CoreBundle/Framework/Container.php

@@ -213,6 +213,14 @@ class Container
         return self::$container->get('security.authorization_checker');
     }
 
+    /**
+     * @return object|\Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage
+     */
+    public static function getTokenStorage()
+    {
+        return self::$container->get('security.token_storage');
+    }
+
     /**
      * @return TranslatorInterface
      */