autoload_real.php 1.69 KB
Newer Older
1 2
<?php

3
// autoload_real.php @generated by Composer
4

5
class ComposerAutoloaderInit8448fbbf88ecb044f224057d631a4472
6
{
7 8
    private static $loader;

9 10 11 12 13 14 15
    public static function loadClassLoader($class)
    {
        if ('Composer\Autoload\ClassLoader' === $class) {
            require __DIR__ . '/ClassLoader.php';
        }
    }

16 17
    public static function getLoader()
    {
18 19
        if (null !== self::$loader) {
            return self::$loader;
20 21
        }

22
        spl_autoload_register(array('ComposerAutoloaderInit8448fbbf88ecb044f224057d631a4472', 'loadClassLoader'), true, true);
23
        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
        spl_autoload_unregister(array('ComposerAutoloaderInit8448fbbf88ecb044f224057d631a4472', 'loadClassLoader'));
25

26
        $vendorDir = dirname(__DIR__);
27
        $baseDir = dirname(dirname($vendorDir));
28

29 30 31 32
        $includePaths = require __DIR__ . '/include_paths.php';
        array_push($includePaths, get_include_path());
        set_include_path(join(PATH_SEPARATOR, $includePaths));

33 34
        $map = require __DIR__ . '/autoload_namespaces.php';
        foreach ($map as $namespace => $path) {
35
            $loader->set($namespace, $path);
36 37
        }

38 39 40 41 42
        $map = require __DIR__ . '/autoload_psr4.php';
        foreach ($map as $namespace => $path) {
            $loader->setPsr4($namespace, $path);
        }

43 44 45 46 47
        $classMap = require __DIR__ . '/autoload_classmap.php';
        if ($classMap) {
            $loader->addClassMap($classMap);
        }

48
        $loader->register(true);
49

50 51 52 53
        $includeFiles = require __DIR__ . '/autoload_files.php';
        foreach ($includeFiles as $file) {
            require $file;
        }
54

55 56 57
        return $loader;
    }
}