bootstrap.php 539 B

123456789101112131415161718
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  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. if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Process')) {
  12. if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Process')).'.php')) {
  13. require_once $file;
  14. }
  15. }
  16. });