Procházet zdrojové kódy

Fix relative target dirs

Jordi Boggiano před 13 roky
rodič
revize
304ce3b375
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 1
src/Composer/Autoload/AutoloadGenerator.php

@@ -52,7 +52,7 @@ EOF;
         $filesystem = new Filesystem();
         $vendorPath = strtr(realpath($installationManager->getVendorPath()), '\\', '/');
         $relVendorPath = ltrim(substr($vendorPath, strlen(getcwd())), '/');
-        $vendorDirCode = $filesystem->findShortestPathCode($targetDir, $vendorPath, true);
+        $vendorDirCode = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
 
         $namespacesFile = <<<EOF
 <?php