bootstrap.php 713 B

123456789101112131415161718192021222324
  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 includeIfExists($file)
  12. {
  13. return file_exists($file) ? include $file : false;
  14. }
  15. if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
  16. echo 'You must set up the project dependencies using `composer install`'.PHP_EOL.
  17. 'See https://getcomposer.org/download/ for instructions on installing Composer'.PHP_EOL;
  18. exit(1);
  19. }
  20. return $loader;