mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11150] Add extension:start-managing command
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
779c9c8552
commit
00229c20f0
@@ -73,6 +73,9 @@ class installer
|
||||
$this->packages_vendor_dir = $config['exts_composer_vendor_dir'];
|
||||
}
|
||||
|
||||
$this->repositories = ['http://phpbb.local/ext/phpbb/titania/composer/'];
|
||||
$this->packagist = true;
|
||||
|
||||
$this->root_path = $root_path;
|
||||
}
|
||||
|
||||
@@ -214,12 +217,18 @@ class installer
|
||||
{
|
||||
$packages = $repository->findPackages($package);
|
||||
$package = array_pop($packages);
|
||||
|
||||
if (isset($available[$package->getName()]))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$available[$package->getName()] = ['name' => $package->getPrettyName()];
|
||||
|
||||
if ($package instanceof CompletePackage)
|
||||
{
|
||||
$available[$package->getName()]['description'] = $package->getDescription();
|
||||
$available[$package->getName()]['url'] = $package->getHomepage();
|
||||
$available[$package->getName()]['url'] = $package->getDistUrl();//getHomepage();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -236,7 +245,7 @@ class installer
|
||||
if ($package instanceof CompletePackage)
|
||||
{
|
||||
$available[$package->getName()]['description'] = $package->getDescription();
|
||||
$available[$package->getName()]['url'] = $package->getHomepage();
|
||||
$available[$package->getName()]['url'] = $package->getDistUrl();//getHomepage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user