1
0
Fork 0

Merge pull request #2141 from donquixote/feature/autoload-generator-heredoc

Slightly nicer heredoc in AutoloadGenerator::getIncludePathsFile()
pull/2068/merge
Jordi Boggiano 2013-08-01 08:54:02 -07:00
commit 1f2d331fd3
1 changed files with 7 additions and 7 deletions

View File

@ -276,7 +276,12 @@ EOF;
return;
}
$includePathsFile = <<<EOF
$includePathsCode = '';
foreach ($includePaths as $path) {
$includePathsCode .= " " . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
}
return <<<EOF
<?php
// include_paths.php generated by Composer
@ -285,14 +290,9 @@ EOF;
\$baseDir = $appBaseDirCode;
return array(
$includePathsCode);
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)