Selaa lähdekoodia

[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 vuotta sitten
vanhempi
commit
416713afb1
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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()));
     }
 
     /**