diff --git a/HttpCache/Store.php b/HttpCache/Store.php index acddb82652..1029a37e6c 100644 --- a/HttpCache/Store.php +++ b/HttpCache/Store.php @@ -25,8 +25,8 @@ class Store implements StoreInterface { protected $root; - private $keyCache; - private $locks; + protected $keyCache; + protected $locks; /** * Constructor. @@ -258,7 +258,7 @@ public function invalidate(Request $request) * * @return Boolean true if the two environments match, false otherwise */ - private function requestsMatch($vary, $env1, $env2) + protected function requestsMatch($vary, $env1, $env2) { if (empty($vary)) { return true; @@ -285,7 +285,7 @@ private function requestsMatch($vary, $env1, $env2) * * @return array An array of data associated with the key */ - private function getMetadata($key) + protected function getMetadata($key) { if (false === $entries = $this->load($key)) { return array(); @@ -319,7 +319,7 @@ public function purge($url) * * @return string The data associated with the key */ - private function load($key) + protected function load($key) { $path = $this->getPath($key); @@ -334,7 +334,7 @@ private function load($key) * * @return Boolean */ - private function save($key, $data) + protected function save($key, $data) { $path = $this->getPath($key); if (!is_dir(dirname($path)) && false === @mkdir(dirname($path), 0777, true)) { @@ -371,7 +371,7 @@ public function getPath($key) * * @return string A key for the given Request */ - private function getCacheKey(Request $request) + protected function getCacheKey(Request $request) { if (isset($this->keyCache[$request])) { return $this->keyCache[$request]; @@ -387,7 +387,7 @@ private function getCacheKey(Request $request) * * @return array An array of HTTP headers */ - private function persistRequest(Request $request) + protected function persistRequest(Request $request) { return $request->headers->all(); } @@ -399,7 +399,7 @@ private function persistRequest(Request $request) * * @return array An array of HTTP headers */ - private function persistResponse(Response $response) + protected function persistResponse(Response $response) { $headers = $response->headers->all(); $headers['X-Status'] = array($response->getStatusCode()); @@ -415,7 +415,7 @@ private function persistResponse(Response $response) * * @return Response */ - private function restoreResponse($headers, $body = null) + protected function restoreResponse($headers, $body = null) { $status = $headers['X-Status'][0]; unset($headers['X-Status']);