cloudflare/Cloudflare-CPanel
Publicmirrored fromhttps://github.com/cloudflare/Cloudflare-CPanel
vendor/composer/autoload_real.php
59lines · modecode
| 1 | <?php |
| 2 | |
| 3 | // autoload_real.php @generated by Composer |
| 4 | |
| 5 | class ComposerAutoloaderInitb3afba8d614ff1f43cdd7aeb18613292 |
| 6 | { |
| 7 | private static $loader; |
| 8 | |
| 9 | public static function loadClassLoader($class) |
| 10 | { |
| 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
| 12 | require __DIR__ . '/ClassLoader.php'; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | public static function getLoader() |
| 17 | { |
| 18 | if (null !== self::$loader) { |
| 19 | return self::$loader; |
| 20 | } |
| 21 | |
| 22 | spl_autoload_register(array('ComposerAutoloaderInitb3afba8d614ff1f43cdd7aeb18613292', 'loadClassLoader'), true, true); |
| 23 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(); |
| 24 | spl_autoload_unregister(array('ComposerAutoloaderInitb3afba8d614ff1f43cdd7aeb18613292', 'loadClassLoader')); |
| 25 | |
| 26 | $map = require __DIR__ . '/autoload_namespaces.php'; |
| 27 | foreach ($map as $namespace => $path) { |
| 28 | $loader->set($namespace, $path); |
| 29 | } |
| 30 | |
| 31 | $map = require __DIR__ . '/autoload_psr4.php'; |
| 32 | foreach ($map as $namespace => $path) { |
| 33 | $loader->setPsr4($namespace, $path); |
| 34 | } |
| 35 | |
| 36 | $classMap = require __DIR__ . '/autoload_classmap.php'; |
| 37 | if ($classMap) { |
| 38 | $loader->addClassMap($classMap); |
| 39 | } |
| 40 | |
| 41 | $loader->register(true); |
| 42 | |
| 43 | $includeFiles = require __DIR__ . '/autoload_files.php'; |
| 44 | foreach ($includeFiles as $fileIdentifier => $file) { |
| 45 | composerRequireb3afba8d614ff1f43cdd7aeb18613292($fileIdentifier, $file); |
| 46 | } |
| 47 | |
| 48 | return $loader; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | function composerRequireb3afba8d614ff1f43cdd7aeb18613292($fileIdentifier, $file) |
| 53 | { |
| 54 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
| 55 | require $file; |
| 56 | |
| 57 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
| 58 | } |
| 59 | } |