mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Remove useless cache.paths services, use cache.path instead
This commit is contained in:
@@ -273,14 +273,13 @@ class appbox extends base
|
||||
|
||||
$finder = new Finder();
|
||||
$in = [];
|
||||
foreach ($app['cache.paths'] as $path) {
|
||||
$in[] = $path.'/minify/';
|
||||
$in[] = $path.'/twig/';
|
||||
$in[] = $path.'/translations/';
|
||||
$in[] = $path.'/profiler/';
|
||||
$in[] = $path.'/doctrine/';
|
||||
$in[] = $path.'/serializer/';
|
||||
};
|
||||
$path = $app['cache.path'];
|
||||
$in[] = $path.'/minify/';
|
||||
$in[] = $path.'/twig/';
|
||||
$in[] = $path.'/translations/';
|
||||
$in[] = $path.'/profiler/';
|
||||
$in[] = $path.'/doctrine/';
|
||||
$in[] = $path.'/serializer/';
|
||||
$finder->in(array_filter($in, function($path) {
|
||||
return is_dir($path);
|
||||
}))
|
||||
|
Reference in New Issue
Block a user