autoload_real.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. // autoload_real.php @generated by Composer
  3. class ComposerAutoloaderInit444c3f31864f68a3f466e2c19837e185
  4. {
  5. private static $loader;
  6. public static function loadClassLoader($class)
  7. {
  8. if ('Composer\Autoload\ClassLoader' === $class) {
  9. require __DIR__ . '/ClassLoader.php';
  10. }
  11. }
  12. /**
  13. * @return \Composer\Autoload\ClassLoader
  14. */
  15. public static function getLoader()
  16. {
  17. if (null !== self::$loader) {
  18. return self::$loader;
  19. }
  20. require __DIR__ . '/platform_check.php';
  21. spl_autoload_register(array('ComposerAutoloaderInit444c3f31864f68a3f466e2c19837e185', 'loadClassLoader'), true, true);
  22. self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
  23. spl_autoload_unregister(array('ComposerAutoloaderInit444c3f31864f68a3f466e2c19837e185', 'loadClassLoader'));
  24. $includePaths = require __DIR__ . '/include_paths.php';
  25. $includePaths[] = get_include_path();
  26. set_include_path(implode(PATH_SEPARATOR, $includePaths));
  27. $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
  28. if ($useStaticLoader) {
  29. require __DIR__ . '/autoload_static.php';
  30. call_user_func(\Composer\Autoload\ComposerStaticInit444c3f31864f68a3f466e2c19837e185::getInitializer($loader));
  31. } else {
  32. $map = require __DIR__ . '/autoload_namespaces.php';
  33. foreach ($map as $namespace => $path) {
  34. $loader->set($namespace, $path);
  35. }
  36. $map = require __DIR__ . '/autoload_psr4.php';
  37. foreach ($map as $namespace => $path) {
  38. $loader->setPsr4($namespace, $path);
  39. }
  40. $classMap = require __DIR__ . '/autoload_classmap.php';
  41. if ($classMap) {
  42. $loader->addClassMap($classMap);
  43. }
  44. }
  45. $loader->register(true);
  46. if ($useStaticLoader) {
  47. $includeFiles = Composer\Autoload\ComposerStaticInit444c3f31864f68a3f466e2c19837e185::$files;
  48. } else {
  49. $includeFiles = require __DIR__ . '/autoload_files.php';
  50. }
  51. foreach ($includeFiles as $fileIdentifier => $file) {
  52. composerRequire444c3f31864f68a3f466e2c19837e185($fileIdentifier, $file);
  53. }
  54. return $loader;
  55. }
  56. }
  57. function composerRequire444c3f31864f68a3f466e2c19837e185($fileIdentifier, $file)
  58. {
  59. if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  60. require $file;
  61. $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
  62. }
  63. }