Skip to content

Commit

Permalink
Merge pull request #4 from ytake/develop
Browse files Browse the repository at this point in the history
clear file bug fixed
  • Loading branch information
ytake committed Oct 14, 2015
2 parents ead9206 + d1780cf commit 344eff7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Console/ClearCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function fire()

$driverConfig = $configure['aop'][$configure['default']];
if (isset($driverConfig['cacheDir'])) {
$this->filesystem->deleteDirectory($driverConfig['cacheDir']);
$this->filesystem->cleanDirectory($driverConfig['cacheDir']);
}
$this->info('aspect/annotation cache clear!');
}
Expand Down
1 change: 0 additions & 1 deletion tests/CacheableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ protected function resolveManager()
{
$annotation = new \Ytake\LaravelAspect\Annotation;
$annotation->registerAspectAnnotations();
/** @var \Ytake\LaravelAop\GoAspect $aspect */
$aspect = $this->manager->driver('go');
$aspect->register();
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Commands/AspectClearCacheCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function testCacheClearFile()
$configure = $this->app['config']->get('ytake-laravel-aop');
$driverConfig = $configure['aop'][$configure['default']];
if(isset($driverConfig['cacheDir'])) {
$this->assertFalse($this->app['filesystem']->exists($driverConfig['cacheDir']));
$files = $this->app['filesystem']->files($driverConfig['cacheDir']);
$this->assertCount(0, $files);
}
}

Expand Down

0 comments on commit 344eff7

Please sign in to comment.