| Conditions | 7 |
| Paths | 16 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function getLoader() |
||
| 20 | { |
||
| 21 | if (null !== self::$loader) { |
||
| 22 | return self::$loader; |
||
| 23 | } |
||
| 24 | |||
| 25 | spl_autoload_register(array('ComposerAutoloaderInitUserStatus', 'loadClassLoader'), true, true); |
||
| 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(); |
||
| 27 | spl_autoload_unregister(array('ComposerAutoloaderInitUserStatus', 'loadClassLoader')); |
||
| 28 | |||
| 29 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
||
| 30 | if ($useStaticLoader) { |
||
| 31 | require_once __DIR__ . '/autoload_static.php'; |
||
| 32 | |||
| 33 | call_user_func(\Composer\Autoload\ComposerStaticInitUserStatus::getInitializer($loader)); |
||
| 34 | } else { |
||
| 35 | $classMap = require __DIR__ . '/autoload_classmap.php'; |
||
| 36 | if ($classMap) { |
||
| 37 | $loader->addClassMap($classMap); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | $loader->setClassMapAuthoritative(true); |
||
| 42 | $loader->register(true); |
||
| 43 | |||
| 44 | return $loader; |
||
| 45 | } |
||
| 47 |