@@ -69,7 +69,6 @@ discard block |
||
69 | 69 | * @param LoggerInterface|LogInterface $log |
70 | 70 | * @param string $cacheDirectory |
71 | 71 | * @param boolean $relativeToSystemTempDirectory |
72 | - * @param int $hashDepth |
|
73 | 72 | */ |
74 | 73 | function __construct($defaultTimeToLive, $log, $cacheDirectory, $relativeToSystemTempDirectory) |
75 | 74 | { |
@@ -263,6 +262,9 @@ discard block |
||
263 | 262 | return $dir.$subFolder; |
264 | 263 | } |
265 | 264 | |
265 | + /** |
|
266 | + * @param string $key |
|
267 | + */ |
|
266 | 268 | protected function getFileName($key) { |
267 | 269 | $subFolder = $this->getDirectory($key); |
268 | 270 | // Remove any "/" and ":" from the name, and replace those with "_" ... |
@@ -281,6 +283,9 @@ discard block |
||
281 | 283 | return $subFolder.md5($key).'.cache'; |
282 | 284 | } |
283 | 285 | |
286 | + /** |
|
287 | + * @param string $dir |
|
288 | + */ |
|
284 | 289 | private static function rrmdir($dir) { |
285 | 290 | if (is_dir($dir)) { |
286 | 291 | $objects = scandir($dir); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Mouf\Utils\Cache; |
3 | 3 | |
4 | -use Mouf\Utils\Log\LogInterface; |
|
4 | +use Mouf\Utils\Log\LogInterface; |
|
5 | 5 | use Psr\Log\LoggerInterface; |
6 | 6 | |
7 | 7 | /** |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Mouf\Utils\Cache; |
3 | 3 | |
4 | -use Mouf\Installer\PackageInstallerInterface; |
|
4 | +use Mouf\Installer\PackageInstallerInterface; |
|
5 | 5 | use Mouf\MoufManager; |
6 | 6 | |
7 | 7 | /** |