autoload_real.php 991 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // autoload_real.php generated by Composer
  3. require __DIR__ . '/ClassLoader.php';
  4. class ComposerAutoloaderInit
  5. {
  6. private static $loader;
  7. public static function getLoader()
  8. {
  9. if (null !== static::$loader) {
  10. return static::$loader;
  11. }
  12. static::$loader = $loader = new \Composer\Autoload\ClassLoader();
  13. $vendorDir = dirname(__DIR__);
  14. $baseDir = dirname($vendorDir);
  15. $includePaths = require __DIR__ . '/include_paths.php';
  16. array_push($includePaths, get_include_path());
  17. set_include_path(join(PATH_SEPARATOR, $includePaths));
  18. $map = require __DIR__ . '/autoload_namespaces.php';
  19. foreach ($map as $namespace => $path) {
  20. $loader->add($namespace, $path);
  21. }
  22. $classMap = require __DIR__ . '/autoload_classmap.php';
  23. if ($classMap) {
  24. $loader->addClassMap($classMap);
  25. }
  26. $loader->register();
  27. return $loader;
  28. }
  29. }