mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Add cache.path and cache.paths
PHRAS-764
This commit is contained in:
@@ -771,6 +771,11 @@ class Application extends SilexApplication
|
|||||||
|
|
||||||
return $path;
|
return $path;
|
||||||
});
|
});
|
||||||
|
$this['cache.paths'] = function (Application $app) {
|
||||||
|
return new \ArrayObject([
|
||||||
|
$app['cache.path'],
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
// log path
|
// log path
|
||||||
$this['log.path'] = $this->share(function() {
|
$this['log.path'] = $this->share(function() {
|
||||||
|
@@ -31,7 +31,7 @@ class module_console_systemClearCache extends Command
|
|||||||
{
|
{
|
||||||
$finder = new Finder();
|
$finder = new Finder();
|
||||||
|
|
||||||
$in = $this->container['cache.path'];
|
$in = $this->container['cache.paths']->toArray();
|
||||||
$finder
|
$finder
|
||||||
->exclude('.git')
|
->exclude('.git')
|
||||||
->exclude('.svn')
|
->exclude('.svn')
|
||||||
|
Reference in New Issue
Block a user