Browse Source

Merge pull request #8032 from kitingChris/feature/cacheClearWithEmpty

using emptyDirectory instead of remove for clearing the cache
Jordi Boggiano 6 năm trước cách đây
mục cha
commit
5177293e21
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Composer/Cache.php

+ 2 - 1
src/Composer/Cache.php

@@ -189,7 +189,8 @@ class Cache
     public function clear()
     {
         if ($this->enabled) {
-            return $this->filesystem->removeDirectory($this->root);
+            $this->filesystem->emptyDirectory($this->root);
+            return true;
         }
 
         return false;