暫無描述

autoload_real.php 2.5KB

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