소스 검색

[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)
     {
-        $this->store = new Store($kernel->getCacheDir().'/http_cache');
+        $store = new Store($kernel->getCacheDir().'/http_cache');
         $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()));
     }
 
     /**