فهرست منبع

Using Kernel getCacheDir method

Carlo 13 سال پیش
والد
کامیت
f04e0c836d
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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;