소스 검색

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;