2011-04-05 15:37:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Composer.
|
|
|
|
*
|
|
|
|
* (c) Nils Adermann <naderman@naderman.de>
|
2011-10-27 20:08:46 +00:00
|
|
|
* Jordi Boggiano <j.boggiano@seld.be>
|
2011-04-05 15:37:19 +00:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2012-03-15 00:51:54 +00:00
|
|
|
function autoload($file) {
|
|
|
|
if (file_exists($file)) {
|
|
|
|
return include $file;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((!$loader = autoload(__DIR__.'/../../../.composer/autoload.php')) && (!$loader = autoload(__DIR__.'/../vendor/.composer/autoload.php'))) {
|
2012-02-05 20:23:52 +00:00
|
|
|
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
|
|
|
|
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
|
|
|
|
'php composer.phar install'.PHP_EOL);
|
|
|
|
}
|
|
|
|
|
2011-11-20 14:06:12 +00:00
|
|
|
$loader->add('Composer\Test', __DIR__);
|