xref: /dokuwiki/vendor/composer/autoload_real.php (revision ab0a890215a63de8e7fa87cabb58ea30949afe42)
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
16*ab0a8902SAndreas Gohr    /**
17*ab0a8902SAndreas Gohr     * @return \Composer\Autoload\ClassLoader
18*ab0a8902SAndreas Gohr     */
19605f8e8dSAndreas Gohr    public static function getLoader()
20605f8e8dSAndreas Gohr    {
21605f8e8dSAndreas Gohr        if (null !== self::$loader) {
22605f8e8dSAndreas Gohr            return self::$loader;
23605f8e8dSAndreas Gohr        }
24605f8e8dSAndreas Gohr
25605f8e8dSAndreas Gohr        spl_autoload_register(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'), true, true);
26605f8e8dSAndreas Gohr        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27605f8e8dSAndreas Gohr        spl_autoload_unregister(array('ComposerAutoloaderInita19a915ee98347a0c787119619d2ff9b', 'loadClassLoader'));
28605f8e8dSAndreas Gohr
29e0dd796dSAndreas Gohr        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
307a33d2f8SNiklas Keller        if ($useStaticLoader) {
317a33d2f8SNiklas Keller            require_once __DIR__ . '/autoload_static.php';
327a33d2f8SNiklas Keller
337a33d2f8SNiklas Keller            call_user_func(\Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::getInitializer($loader));
347a33d2f8SNiklas Keller        } else {
35605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_namespaces.php';
36605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
37605f8e8dSAndreas Gohr                $loader->set($namespace, $path);
38605f8e8dSAndreas Gohr            }
39605f8e8dSAndreas Gohr
40605f8e8dSAndreas Gohr            $map = require __DIR__ . '/autoload_psr4.php';
41605f8e8dSAndreas Gohr            foreach ($map as $namespace => $path) {
42605f8e8dSAndreas Gohr                $loader->setPsr4($namespace, $path);
43605f8e8dSAndreas Gohr            }
44605f8e8dSAndreas Gohr
45605f8e8dSAndreas Gohr            $classMap = require __DIR__ . '/autoload_classmap.php';
46605f8e8dSAndreas Gohr            if ($classMap) {
47605f8e8dSAndreas Gohr                $loader->addClassMap($classMap);
48605f8e8dSAndreas Gohr            }
497a33d2f8SNiklas Keller        }
50605f8e8dSAndreas Gohr
51605f8e8dSAndreas Gohr        $loader->register(true);
52605f8e8dSAndreas Gohr
537a33d2f8SNiklas Keller        if ($useStaticLoader) {
547a33d2f8SNiklas Keller            $includeFiles = Composer\Autoload\ComposerStaticInita19a915ee98347a0c787119619d2ff9b::$files;
557a33d2f8SNiklas Keller        } else {
567a33d2f8SNiklas Keller            $includeFiles = require __DIR__ . '/autoload_files.php';
577a33d2f8SNiklas Keller        }
587a33d2f8SNiklas Keller        foreach ($includeFiles as $fileIdentifier => $file) {
597a33d2f8SNiklas Keller            composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file);
607a33d2f8SNiklas Keller        }
617a33d2f8SNiklas Keller
62605f8e8dSAndreas Gohr        return $loader;
63605f8e8dSAndreas Gohr    }
64605f8e8dSAndreas Gohr}
65605f8e8dSAndreas Gohr
667a33d2f8SNiklas Kellerfunction composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file)
67605f8e8dSAndreas Gohr{
687a33d2f8SNiklas Keller    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69605f8e8dSAndreas Gohr        require $file;
707a33d2f8SNiklas Keller
717a33d2f8SNiklas Keller        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
727a33d2f8SNiklas Keller    }
73605f8e8dSAndreas Gohr}
74