Browse Source

Using Kernel getCacheDir method

Carlo 13 years ago
parent
commit
f04e0c836d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/Mmoreramerino/GearmanBundle/Service/GearmanCache.php

+ 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;