diff --git a/CacheWarmer/ThriftCompileCacheWarmer.php b/CacheWarmer/ThriftCompileCacheWarmer.php index 45a95be..9fc051c 100755 --- a/CacheWarmer/ThriftCompileCacheWarmer.php +++ b/CacheWarmer/ThriftCompileCacheWarmer.php @@ -75,7 +75,7 @@ public function compile() { $compiler = new ThriftCompiler(); $compiler->setExecPath($this->path); - $cacheDir = sprintf('%s/%s', $this->cacheDir, self::CACHE_SUFFIX); + $cacheDir = sprintf('%s/../%s', $this->cacheDir, self::CACHE_SUFFIX); // We compile for every Service foreach ($this->services as $config) { @@ -106,15 +106,5 @@ public function compile() ); } } - - // Check if thrift cache directory exists - $fs = new Filesystem(); - - if (!$fs->exists($cacheDir)) { - $fs->mkdir($cacheDir); - } - - // Generate ClassMap - ClassMapGenerator::dump($cacheDir, sprintf('%s/classes.map', $cacheDir)); } }