autoload_real.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. spl_autoload_register(array('ComposerAutoloaderInit444c3f31864f68a3f466e2c19837e185', 'loadClassLoader'), true, true);
  21. self::$loader = $loader = new \Composer\Autoload\ClassLoader();
  22. spl_autoload_unregister(array('ComposerAutoloaderInit444c3f31864f68a3f466e2c19837e185', 'loadClassLoader'));
  23. $includePaths = require __DIR__ . '/include_paths.php';
  24. $includePaths[] = get_include_path();
  25. set_include_path(implode(PATH_SEPARATOR, $includePaths));
  26. $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
  27. if ($useStaticLoader) {
  28. require_once __DIR__ . '/autoload_static.php';
  29. call_user_func(\Composer\Autoload\ComposerStaticInit444c3f31864f68a3f466e2c19837e185::getInitializer($loader));
  30. } else {
  31. $map = require __DIR__ . '/autoload_namespaces.php';
  32. foreach ($map as $namespace => $path) {
  33. $loader->set($namespace, $path);
  34. }
  35. $map = require __DIR__ . '/autoload_psr4.php';
  36. foreach ($map as $namespace => $path) {
  37. $loader->setPsr4($namespace, $path);
  38. }
  39. $classMap = require __DIR__ . '/autoload_classmap.php';
  40. if ($classMap) {
  41. $loader->addClassMap($classMap);
  42. }
  43. }
  44. $loader->register(true);
  45. if ($useStaticLoader) {
  46. $includeFiles = Composer\Autoload\ComposerStaticInit444c3f31864f68a3f466e2c19837e185::$files;
  47. } else {
  48. $includeFiles = require __DIR__ . '/autoload_files.php';
  49. }
  50. foreach ($includeFiles as $fileIdentifier => $file) {
  51. composerRequire444c3f31864f68a3f466e2c19837e185($fileIdentifier, $file);
  52. }
  53. return $loader;
  54. }
  55. }
  56. function composerRequire444c3f31864f68a3f466e2c19837e185($fileIdentifier, $file)
  57. {
  58. if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  59. require $file;
  60. $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
  61. }
  62. }