Merge pull request #108 from havvg/hotfix/cachedir-2.0

use configured cache directory
This commit is contained in:
William DURAND 2012-02-18 05:27:23 -08:00
commit 6bd8f77793

View file

@ -96,7 +96,7 @@ abstract class AbstractPropelCommand extends ContainerAwareCommand
if (isset($properties['propel.schema.dir'])) {
$this->cacheDir = $properties['propel.schema.dir'];
} else {
$this->cacheDir = $kernel->getRootDir().'/cache/' . $kernel->getEnvironment() . '/propel';
$this->cacheDir = $kernel->getCacheDir().'/propel';
$filesystem = new Filesystem();
$filesystem->remove($this->cacheDir);