xref: /dokuwiki/vendor/composer/autoload_real.php (revision 6cb05674d342c24351edf98467e681cbaabf9d0b)
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
16ab0a8902SAndreas Gohr    /**
17ab0a8902SAndreas Gohr     * @return \Composer\Autoload\ClassLoader
18ab0a8902SAndreas Gohr     */
19605f8e8dSAndreas Gohr    public static function getLoader()
20605f8e8dSAndreas Gohr    {
21605f8e8dSAndreas Gohr        if (null !== self::$loader) {
22605f8e8dSAndreas Gohr            return self::$loader;
23605f8e8dSAndreas Gohr        }
24605f8e8dSAndreas Gohr
25*6cb05674SAndreas Gohr        require __DIR__ . '/platform_check.php';
26*6cb05674SAndreas Gohr
27605f8e8dSAndreas Gohr        spl_autoload_register(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'), true, true);
28*6cb05674SAndreas Gohr        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29605f8e8dSAndreas Gohr        spl_autoload_unregister(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'));
30605f8e8dSAndreas Gohr
31e0dd796dSAndreas Gohr        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
327a33d2f8SNiklas Keller        if ($useStaticLoader) {
33*6cb05674SAndreas Gohr            require __DIR__ . '/autoload_static.php';
347a33d2f8SNiklas Keller
357a33d2f8SNiklas Keller            call_user_func(\Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::getInitializer($loader));
367a33d2f8SNiklas Keller        } else {
37605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_namespaces.php';
38605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
39605f8e8dSAndreas Gohr                $loader->set($namespace, $path);
40605f8e8dSAndreas Gohr            }
41605f8e8dSAndreas Gohr
42605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_psr4.php';
43605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
44605f8e8dSAndreas Gohr                $loader->setPsr4($namespace, $path);
45605f8e8dSAndreas Gohr            }
46605f8e8dSAndreas Gohr
47605f8e8dSAndreas Gohr            $classMap = require __DIR__ . '/autoload_classmap.php';
48605f8e8dSAndreas Gohr            if ($classMap) {
49605f8e8dSAndreas Gohr                $loader->addClassMap($classMap);
50605f8e8dSAndreas Gohr            }
517a33d2f8SNiklas Keller        }
52605f8e8dSAndreas Gohr
53605f8e8dSAndreas Gohr        $loader->register(true);
54605f8e8dSAndreas Gohr
557a33d2f8SNiklas Keller        if ($useStaticLoader) {
567a33d2f8SNiklas Keller            $includeFiles = Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::$files;
577a33d2f8SNiklas Keller        } else {
587a33d2f8SNiklas Keller            $includeFiles = require __DIR__ . '/autoload_files.php';
597a33d2f8SNiklas Keller        }
607a33d2f8SNiklas Keller        foreach ($includeFiles as $fileIdentifier => $file) {
617a33d2f8SNiklas Keller            composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file);
627a33d2f8SNiklas Keller        }
637a33d2f8SNiklas Keller
64605f8e8dSAndreas Gohr        return $loader;
65605f8e8dSAndreas Gohr    }
66605f8e8dSAndreas Gohr}
67605f8e8dSAndreas Gohr
687a33d2f8SNiklas Kellerfunction composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file)
69605f8e8dSAndreas Gohr{
707a33d2f8SNiklas Keller    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71605f8e8dSAndreas Gohr        require $file;
727a33d2f8SNiklas Keller
737a33d2f8SNiklas Keller        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
747a33d2f8SNiklas Keller    }
75605f8e8dSAndreas Gohr}
76