Forráskód Böngészése

Merge pull request #14 from carlo1138/hotfix/kernel-cachedir

Using Kernel::getCacheDir method
Marc 13 éve
szülő
commit
0c0dbb104a

+ 1 - 2
lib/Mmoreramerino/GearmanBundle/Service/GearmanCache.php

@@ -148,8 +148,7 @@ class GearmanCache extends ContainerAware
     public function getPath()
     {
         if (null === $this->cachedir) {
-            $rootDir = $this->container->get('kernel')->getRootDir();
-            $this->cachedir = $rootDir . '/cache/'.$this->container->get('kernel')->getEnvironment().'/gearman/';
+            $this->cachedir = $this->container->get('kernel')->getCacheDir().'/gearman/';
         }
 
         return $this->cachedir;