Skip to content

Commit

Permalink
removed the automatic downloading of composer in autoload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 20, 2012
1 parent 1229ec4 commit b076ed4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
if (!$loader = include __DIR__.'/../vendor/autoload.php') {
$nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />';
echo "$nl$nl";
if (is_writable(dirname(__DIR__)) && $installer = @file_get_contents('http://getcomposer.org/installer')) {
echo 'You must set up the project dependencies.'.$nl;
$installerPath = dirname(__DIR__).'/install-composer.php';
file_put_contents($installerPath, $installer);
echo 'The composer installer has been downloaded in '.$installerPath.$nl;
die('Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
'php install-composer.php'.$nl.
'php composer.phar install'.$nl);
}
die('You must set up the project dependencies.'.$nl.
'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
'curl -s http://getcomposer.org/installer | php'.$nl.
Expand Down

0 comments on commit b076ed4

Please sign in to comment.