xref: /dokuwiki/vendor/composer/autoload_real.php (revision 7a33d2f8a8d3dc5633646a576e37dc7a830c2f89)
1605f8e8dSAndreas Gohr<?php
2605f8e8dSAndreas Gohr
3605f8e8dSAndreas Gohr// autoload_real.php @generated by Composer
4605f8e8dSAndreas Gohr
5605f8e8dSAndreas Gohrclass ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b
6605f8e8dSAndreas Gohr{
7605f8e8dSAndreas Gohr    private static $loader;
8605f8e8dSAndreas Gohr
9605f8e8dSAndreas Gohr    public static function loadClassLoader($class)
10605f8e8dSAndreas Gohr    {
11605f8e8dSAndreas Gohr        if ('Composer\Autoload\ClassLoader' === $class) {
12605f8e8dSAndreas Gohr            require __DIR__ . '/ClassLoader.php';
13605f8e8dSAndreas Gohr        }
14605f8e8dSAndreas Gohr    }
15605f8e8dSAndreas Gohr
16605f8e8dSAndreas Gohr    public static function getLoader()
17605f8e8dSAndreas Gohr    {
18605f8e8dSAndreas Gohr        if (null !== self::$loader) {
19605f8e8dSAndreas Gohr            return self::$loader;
20605f8e8dSAndreas Gohr        }
21605f8e8dSAndreas Gohr
22605f8e8dSAndreas Gohr        spl_autoload_register(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'), true, true);
23605f8e8dSAndreas Gohr        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24605f8e8dSAndreas Gohr        spl_autoload_unregister(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'));
25605f8e8dSAndreas Gohr
26*7a33d2f8SNiklas Keller        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
27*7a33d2f8SNiklas Keller        if ($useStaticLoader) {
28*7a33d2f8SNiklas Keller            require_once __DIR__ . '/autoload_static.php';
29*7a33d2f8SNiklas Keller
30*7a33d2f8SNiklas Keller            call_user_func(\Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::getInitializer($loader));
31*7a33d2f8SNiklas Keller        } else {
32605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_namespaces.php';
33605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
34605f8e8dSAndreas Gohr                $loader->set($namespace, $path);
35605f8e8dSAndreas Gohr            }
36605f8e8dSAndreas Gohr
37605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_psr4.php';
38605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
39605f8e8dSAndreas Gohr                $loader->setPsr4($namespace, $path);
40605f8e8dSAndreas Gohr            }
41605f8e8dSAndreas Gohr
42605f8e8dSAndreas Gohr            $classMap = require __DIR__ . '/autoload_classmap.php';
43605f8e8dSAndreas Gohr            if ($classMap) {
44605f8e8dSAndreas Gohr                $loader->addClassMap($classMap);
45605f8e8dSAndreas Gohr            }
46*7a33d2f8SNiklas Keller        }
47605f8e8dSAndreas Gohr
48605f8e8dSAndreas Gohr        $loader->register(true);
49605f8e8dSAndreas Gohr
50*7a33d2f8SNiklas Keller        if ($useStaticLoader) {
51*7a33d2f8SNiklas Keller            $includeFiles = Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::$files;
52*7a33d2f8SNiklas Keller        } else {
53*7a33d2f8SNiklas Keller            $includeFiles = require __DIR__ . '/autoload_files.php';
54*7a33d2f8SNiklas Keller        }
55*7a33d2f8SNiklas Keller        foreach ($includeFiles as $fileIdentifier => $file) {
56*7a33d2f8SNiklas Keller            composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file);
57*7a33d2f8SNiklas Keller        }
58*7a33d2f8SNiklas Keller
59605f8e8dSAndreas Gohr        return $loader;
60605f8e8dSAndreas Gohr    }
61605f8e8dSAndreas Gohr}
62605f8e8dSAndreas Gohr
63*7a33d2f8SNiklas Kellerfunction composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file)
64605f8e8dSAndreas Gohr{
65*7a33d2f8SNiklas Keller    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66605f8e8dSAndreas Gohr        require $file;
67*7a33d2f8SNiklas Keller
68*7a33d2f8SNiklas Keller        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
69*7a33d2f8SNiklas Keller    }
70605f8e8dSAndreas Gohr}
71