bootstrap.php 787 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. function autoload($file) {
  12. if (file_exists($file)) {
  13. return include $file;
  14. } else {
  15. return false;
  16. }
  17. }
  18. if ((!$loader = autoload(__DIR__.'/../../../.composer/autoload.php')) && (!$loader = autoload(__DIR__.'/../vendor/.composer/autoload.php'))) {
  19. die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
  20. 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
  21. 'php composer.phar install'.PHP_EOL);
  22. }
  23. $loader->add('Composer\Test', __DIR__);