Remove useless cache.paths services, use cache.path instead

This commit is contained in:
Benoît Burnichon
2015-04-14 15:23:35 +02:00
parent 05639e0953
commit 0349db4adb
4 changed files with 25 additions and 50 deletions

View File

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