Skip to content

Commit

Permalink
Update ThriftCompileCacheWarmer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
f1nder authored Aug 23, 2018
1 parent def8d15 commit e0bc2d9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions CacheWarmer/ThriftCompileCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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));
}
}

0 comments on commit e0bc2d9

Please sign in to comment.