bootstrap.php 416 B

1234567891011121314151617181920
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. spl_autoload_register(function($class)
  11. {
  12. $file = __DIR__.'/../src/'.strtr($class, '\\', '/').'.php';
  13. if (file_exists($file)) {
  14. require $file;
  15. return true;
  16. }
  17. });