3 // autoload_real.php @generated by Composer
5 class ComposerAutoloaderInitFriendica
7 private static $loader;
9 public static function loadClassLoader($class)
11 if ('Composer\Autoload\ClassLoader' === $class) {
12 require __DIR__ . '/ClassLoader.php';
16 public static function getLoader()
18 if (null !== self::$loader) {
22 spl_autoload_register(array('ComposerAutoloaderInitFriendica', 'loadClassLoader'), true, true);
23 self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24 spl_autoload_unregister(array('ComposerAutoloaderInitFriendica', 'loadClassLoader'));
26 $includePaths = require __DIR__ . '/include_paths.php';
27 array_push($includePaths, get_include_path());
28 set_include_path(implode(PATH_SEPARATOR, $includePaths));
30 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
31 if ($useStaticLoader) {
32 require_once __DIR__ . '/autoload_static.php';
34 call_user_func(\Composer\Autoload\ComposerStaticInitFriendica::getInitializer($loader));
36 $map = require __DIR__ . '/autoload_namespaces.php';
37 foreach ($map as $namespace => $path) {
38 $loader->set($namespace, $path);
41 $map = require __DIR__ . '/autoload_psr4.php';
42 foreach ($map as $namespace => $path) {
43 $loader->setPsr4($namespace, $path);
46 $classMap = require __DIR__ . '/autoload_classmap.php';
48 $loader->addClassMap($classMap);
52 $loader->register(true);
54 if ($useStaticLoader) {
55 $includeFiles = Composer\Autoload\ComposerStaticInitFriendica::$files;
57 $includeFiles = require __DIR__ . '/autoload_files.php';
59 foreach ($includeFiles as $fileIdentifier => $file) {
60 composerRequireFriendica($fileIdentifier, $file);
67 function composerRequireFriendica($fileIdentifier, $file)
69 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
72 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;