1
0
Fork 0

Merge pull request #67 from fabpot/fix-autoloader

Fix autoload.php generator
pull/69/merge
Nils Adermann 2011-10-29 03:35:09 -07:00
commit 56f8758b12
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);
}