mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17052] Create our own static composer factory and pass known cwd
PHPBB3-17052
This commit is contained in:
parent
e51254a0d4
commit
09f2fe805c
1 changed files with 12 additions and 1 deletions
|
@ -232,8 +232,19 @@ class installer
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
static $composer_factory;
|
||||||
|
if (!$composer_factory)
|
||||||
|
{
|
||||||
|
$composer_factory = new Factory();
|
||||||
|
}
|
||||||
|
|
||||||
$io = new NullIO();
|
$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 = [];
|
$installed = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue