Merge pull request #2141 from donquixote/feature/autoload-generator-heredoc
Slightly nicer heredoc in AutoloadGenerator::getIncludePathsFile()pull/2068/merge
commit
1f2d331fd3
|
@ -276,7 +276,12 @@ EOF;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$includePathsFile = <<<EOF
|
$includePathsCode = '';
|
||||||
|
foreach ($includePaths as $path) {
|
||||||
|
$includePathsCode .= " " . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
return <<<EOF
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// include_paths.php generated by Composer
|
// include_paths.php generated by Composer
|
||||||
|
@ -285,14 +290,9 @@ EOF;
|
||||||
\$baseDir = $appBaseDirCode;
|
\$baseDir = $appBaseDirCode;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
$includePathsCode);
|
||||||
|
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
foreach ($includePaths as $path) {
|
|
||||||
$includePathsFile .= " " . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $includePathsFile . ");\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getIncludeFilesFile(array $files, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode)
|
protected function getIncludeFilesFile(array $files, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode)
|
||||||
|
|
Loading…
Reference in New Issue