From 2c01cd5283a11f36d9909c9b11ca2d2120d90521 Mon Sep 17 00:00:00 2001 From: ytake Date: Wed, 14 Oct 2015 16:55:39 +0900 Subject: [PATCH] clear file bug fixed --- src/Console/ClearCacheCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Console/ClearCacheCommand.php b/src/Console/ClearCacheCommand.php index d254bed..d8d648b 100644 --- a/src/Console/ClearCacheCommand.php +++ b/src/Console/ClearCacheCommand.php @@ -56,7 +56,10 @@ public function fire() $driverConfig = $configure['aop'][$configure['default']]; if (isset($driverConfig['cacheDir'])) { - $this->filesystem->deleteDirectory($driverConfig['cacheDir']); + $compileCaches = $this->filesystem->glob($driverConfig['cacheDir'] . '/*'); + foreach ($compileCaches as $file) { + $this->filesystem->deleteDirectory($file); + } } $this->info('aspect/annotation cache clear!'); }