Skip to content

Commit

Permalink
clear file bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Oct 14, 2015
1 parent 59b70e7 commit 2c01cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Console/ClearCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
}
Expand Down

0 comments on commit 2c01cd5

Please sign in to comment.