From 5146085dc26b360bd68592152fb9d5d21f85cc66 Mon Sep 17 00:00:00 2001 From: Branden Cash Date: Wed, 10 Jun 2015 11:46:08 -0700 Subject: [PATCH] Follow symlinks when searching for artifacts --- src/Composer/Repository/ArtifactRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/ArtifactRepository.php b/src/Composer/Repository/ArtifactRepository.php index 2bb518b8f..082ae364b 100644 --- a/src/Composer/Repository/ArtifactRepository.php +++ b/src/Composer/Repository/ArtifactRepository.php @@ -48,7 +48,7 @@ class ArtifactRepository extends ArrayRepository { $io = $this->io; - $directory = new \RecursiveDirectoryIterator($path); + $directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS); $iterator = new \RecursiveIteratorIterator($directory); $regex = new \RegexIterator($iterator, '/^.+\.(zip|phar)$/i'); foreach ($regex as $file) {