Add loading of files autoload section for plugins and Composer runtime autoloaders (#10065)
parent
b09a39f9c8
commit
8553c6d978
|
@ -611,6 +611,12 @@ EOF;
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($autoloads['files'])) {
|
||||
foreach ($autoloads['files'] as $fileIdentifier => $file) {
|
||||
composerRequire($fileIdentifier, $file);
|
||||
}
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
|
||||
|
@ -1393,3 +1399,12 @@ INITIALIZER;
|
|||
return $sortedPackageMap;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue