浏览代码

[HttpKernel] added missing accessor

Fabien Potencier 13 年之前
父节点
当前提交
43ce425f88
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

+ 10 - 0
src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

@@ -96,6 +96,16 @@ class HttpCache implements HttpKernelInterface
         $this->traces = array();
     }
 
+    /**
+     * Gets the current store.
+     *
+     * @return StoreInterface $store A StoreInterface instance
+     */
+    public function getStore()
+    {
+        return $this->store;
+    }
+
     /**
      * Returns an array of events that took place during processing of the last request.
      *