register(true); $filesToLoad = \Composer\Autoload\ComposerStaticInitFilesAutoload::$files; $requireFile = static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; require $file; } }; foreach ($filesToLoad as $fileIdentifier => $file) { ($requireFile)($fileIdentifier, $file); } return $loader; } }