| Conditions | 4 |
| Paths | 3 |
| Total Lines | 30 |
| Code Lines | 18 |
| 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 | require __DIR__ . '/platform_check.php'; |
||
| 26 | |||
| 27 | spl_autoload_register(array('ComposerAutoloaderInit32b4577ead0e85718e65462c456de16c', 'loadClassLoader'), true, true); |
||
| 28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
||
| 29 | spl_autoload_unregister(array('ComposerAutoloaderInit32b4577ead0e85718e65462c456de16c', 'loadClassLoader')); |
||
| 30 | |||
| 31 | require __DIR__ . '/autoload_static.php'; |
||
| 32 | call_user_func(\Composer\Autoload\ComposerStaticInit32b4577ead0e85718e65462c456de16c::getInitializer($loader)); |
||
| 33 | |||
| 34 | $loader->register(true); |
||
| 35 | |||
| 36 | $filesToLoad = \Composer\Autoload\ComposerStaticInit32b4577ead0e85718e65462c456de16c::$files; |
||
| 37 | $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
||
| 38 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
||
| 39 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
||
| 40 | |||
| 41 | require $file; |
||
| 42 | } |
||
| 43 | }, null, null); |
||
| 44 | foreach ($filesToLoad as $fileIdentifier => $file) { |
||
| 45 | $requireFile($fileIdentifier, $file); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $loader; |
||
| 49 | } |
||
| 51 |