use configured cache directory

This commit is contained in:
Toni Uebernickel 2012-02-18 02:48:35 +01:00
parent 0dc2bd7e78
commit b56f80a5a7

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);