1
0
Fork 0

Fix autoload.php generator

pull/67/head
Fabien Potencier 2011-10-29 07:24:30 +02:00
parent d16b928baf
commit 9e7ebd9280
1 changed files with 4 additions and 6 deletions

View File

@ -39,11 +39,11 @@ class AutoloadGenerator
{
$autoloads = $this->parseAutoloads();
$file = <<<'EOF'
<?php
// autoload.php generated by composer
$file = file_get_contents(__DIR__.'/ClassLoader.php');
namespace Composer\Autoload;
$file .= <<<'EOF'
// autoload.php generated by composer
$loader = new ClassLoader();
@ -67,8 +67,6 @@ $loader->register();
EOF;
$file .= file_get_contents(__DIR__.'/ClassLoader.php');
file_put_contents($targetFilename, $file);
}