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