You are here

public static function ComposerAutoloaderInit874ccd098ba068a0b5f11cfd9f55b4ac::getLoader in Hook Update Deploy Tools 7

1 call to ComposerAutoloaderInit874ccd098ba068a0b5f11cfd9f55b4ac::getLoader()
autoload.php in vendor/autoload.php

File

vendor/composer/autoload_real.php, line 16

Class

ComposerAutoloaderInit874ccd098ba068a0b5f11cfd9f55b4ac

Code

public static function getLoader() {
  if (null !== self::$loader) {
    return self::$loader;
  }
  spl_autoload_register(array(
    'ComposerAutoloaderInit874ccd098ba068a0b5f11cfd9f55b4ac',
    'loadClassLoader',
  ), true, true);
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
  spl_autoload_unregister(array(
    'ComposerAutoloaderInit874ccd098ba068a0b5f11cfd9f55b4ac',
    'loadClassLoader',
  ));
  $map = (require __DIR__ . '/autoload_namespaces.php');
  foreach ($map as $namespace => $path) {
    $loader
      ->set($namespace, $path);
  }
  $map = (require __DIR__ . '/autoload_psr4.php');
  foreach ($map as $namespace => $path) {
    $loader
      ->setPsr4($namespace, $path);
  }
  $classMap = (require __DIR__ . '/autoload_classmap.php');
  if ($classMap) {
    $loader
      ->addClassMap($classMap);
  }
  $loader
    ->register(true);
  return $loader;
}