Add cache.path and cache.paths

PHRAS-764
This commit is contained in:
Benoît Burnichon
2015-10-13 10:11:49 +02:00
parent c4a7f126d2
commit a938b348b7
2 changed files with 6 additions and 1 deletions

View File

@@ -771,6 +771,11 @@ class Application extends SilexApplication
return $path;
});
$this['cache.paths'] = function (Application $app) {
return new \ArrayObject([
$app['cache.path'],
]);
};
// log path
$this['log.path'] = $this->share(function() {

View File

@@ -31,7 +31,7 @@ class module_console_systemClearCache extends Command
{
$finder = new Finder();
$in = $this->container['cache.path'];
$in = $this->container['cache.paths']->toArray();
$finder
->exclude('.git')
->exclude('.svn')