Преглед на файлове

Make repository path absolute (again)

Dennis Birkholz преди 10 години
родител
ревизия
3ef222c920
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/Composer/Repository/PathRepository.php

+ 2 - 0
src/Composer/Repository/PathRepository.php

@@ -104,6 +104,8 @@ class PathRepository extends ArrayRepository
         $foundPackage = false;
 
         foreach ($this->getPaths() as $path) {
+            $path = realpath($path);
+            
             $composerFilePath = $path.'composer.json';
             if (!file_exists($composerFilePath)) {
                 continue;