bootstrap.php 729 B

1234567891011121314151617181920212223242526
  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. if (file_exists($file)) {
  14. return include $file;
  15. }
  16. }
  17. if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
  18. die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
  19. 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
  20. 'php composer.phar install'.PHP_EOL);
  21. }
  22. return $loader;