autoload_real.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // autoload_real.php @generated by Composer
  3. class ComposerAutoloaderInit98fe9b281934250b3a93f69a5ce843b3
  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('ComposerAutoloaderInit98fe9b281934250b3a93f69a5ce843b3', 'loadClassLoader'), true, true);
  22. self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
  23. spl_autoload_unregister(array('ComposerAutoloaderInit98fe9b281934250b3a93f69a5ce843b3', 'loadClassLoader'));
  24. $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
  25. if ($useStaticLoader) {
  26. require __DIR__ . '/autoload_static.php';
  27. call_user_func(\Composer\Autoload\ComposerStaticInit98fe9b281934250b3a93f69a5ce843b3::getInitializer($loader));
  28. } else {
  29. $classMap = require __DIR__ . '/autoload_classmap.php';
  30. if ($classMap) {
  31. $loader->addClassMap($classMap);
  32. }
  33. }
  34. $loader->setClassMapAuthoritative(true);
  35. $loader->register(true);
  36. return $loader;
  37. }
  38. }