[ticket/17052] Create our own static composer factory and pass known cwd

PHPBB3-17052
This commit is contained in:
Marc Alexander 2022-10-18 22:52:19 +02:00
parent e51254a0d4
commit 09f2fe805c
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -232,8 +232,19 @@ class installer
try
{
static $composer_factory;
if (!$composer_factory)
{
$composer_factory = new Factory();
}
$io = new NullIO();
$composer = Factory::create($io, $this->get_composer_ext_json_filename(), false);
$composer = $composer_factory->createComposer(
$io,
$this->get_composer_ext_json_filename(),
false,
filesystem_helper::realpath('')
);
$installed = [];