瀏覽代碼

[Cache] Changing variable from a property to a normal variable for consistency - the variable is passed to the parent constructor and set on the property there.

Ryan Weaver 14 年之前
父節點
當前提交
416713afb1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/Cache/Cache.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Cache/Cache.php

@@ -31,10 +31,10 @@ abstract class Cache extends BaseCache
      */
      */
     public function __construct(HttpKernelInterface $kernel)
     public function __construct(HttpKernelInterface $kernel)
     {
     {
-        $this->store = new Store($kernel->getCacheDir().'/http_cache');
+        $store = new Store($kernel->getCacheDir().'/http_cache');
         $esi = new Esi();
         $esi = new Esi();
 
 
-        parent::__construct($kernel, $this->store, $esi, array_merge(array('debug' => $kernel->isDebug()), $this->getOptions()));
+        parent::__construct($kernel, $store, $esi, array_merge(array('debug' => $kernel->isDebug()), $this->getOptions()));
     }
     }
 
 
     /**
     /**