installers
3 weeks ago
ClassLoader.php
3 weeks ago
InstalledVersions.php
3 weeks ago
LICENSE
5 years ago
autoload_classmap.php
3 weeks ago
autoload_files.php
3 weeks ago
autoload_namespaces.php
3 weeks ago
autoload_psr4.php
3 weeks ago
autoload_real.php
3 weeks ago
autoload_static.php
3 weeks ago
installed.php
3 weeks ago
platform_check.php
3 weeks ago
autoload_real.php
72 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | class ComposerAutoloaderInit482bc033ea4a2ca174e7e3de9427fc4c |
| 5 | { |
| 6 | private static $loader; |
| 7 | |
| 8 | public static function loadClassLoader($class) |
| 9 | { |
| 10 | if ('Composer\Autoload\ClassLoader' === $class) { |
| 11 | require __DIR__ . '/ClassLoader.php'; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | public static function getLoader() |
| 16 | { |
| 17 | if (null !== self::$loader) { |
| 18 | return self::$loader; |
| 19 | } |
| 20 | |
| 21 | require __DIR__ . '/platform_check.php'; |
| 22 | |
| 23 | spl_autoload_register(array('ComposerAutoloaderInit482bc033ea4a2ca174e7e3de9427fc4c', 'loadClassLoader'), true, true); |
| 24 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
| 25 | spl_autoload_unregister(array('ComposerAutoloaderInit482bc033ea4a2ca174e7e3de9427fc4c', 'loadClassLoader')); |
| 26 | |
| 27 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
| 28 | if ($useStaticLoader) { |
| 29 | require __DIR__ . '/autoload_static.php'; |
| 30 | |
| 31 | call_user_func(\Composer\Autoload\ComposerStaticInit482bc033ea4a2ca174e7e3de9427fc4c::getInitializer($loader)); |
| 32 | } else { |
| 33 | $map = require __DIR__ . '/autoload_namespaces.php'; |
| 34 | foreach ($map as $namespace => $path) { |
| 35 | $loader->set($namespace, $path); |
| 36 | } |
| 37 | |
| 38 | $map = require __DIR__ . '/autoload_psr4.php'; |
| 39 | foreach ($map as $namespace => $path) { |
| 40 | $loader->setPsr4($namespace, $path); |
| 41 | } |
| 42 | |
| 43 | $classMap = require __DIR__ . '/autoload_classmap.php'; |
| 44 | if ($classMap) { |
| 45 | $loader->addClassMap($classMap); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | $loader->register(true); |
| 50 | |
| 51 | if ($useStaticLoader) { |
| 52 | $includeFiles = Composer\Autoload\ComposerStaticInit482bc033ea4a2ca174e7e3de9427fc4c::$files; |
| 53 | } else { |
| 54 | $includeFiles = require __DIR__ . '/autoload_files.php'; |
| 55 | } |
| 56 | foreach ($includeFiles as $fileIdentifier => $file) { |
| 57 | composerRequire482bc033ea4a2ca174e7e3de9427fc4c($fileIdentifier, $file); |
| 58 | } |
| 59 | |
| 60 | return $loader; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | function composerRequire482bc033ea4a2ca174e7e3de9427fc4c($fileIdentifier, $file) |
| 65 | { |
| 66 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
| 67 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
| 68 | |
| 69 | require $file; |
| 70 | } |
| 71 | } |
| 72 |