1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11150] Implement install extension link in ACP

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-13 16:21:25 +02:00
committed by Tristan Darricau
parent adb8d30d98
commit 6a15ad1368
6 changed files with 61 additions and 19 deletions

View File

@@ -119,7 +119,7 @@ class installer
->setDumpAutoloader(false)
->setPreferStable(true)
->setRunScripts(false)
->setDryRun(false);
->setDryRun(true);
try
{
@@ -282,6 +282,7 @@ class installer
// Generates the entry
$available[$name] = [];
$available[$name]['name'] = $highest_version->getPrettyName();
$available[$name]['composer_name'] = $highest_version->getName();
$available[$name]['version'] = $highest_version->getPrettyVersion();
if ($version instanceof CompletePackage)

View File

@@ -29,6 +29,7 @@ class console_io extends ConsoleIO
* @param InputInterface $input The input instance
* @param OutputInterface $output The output instance
* @param HelperSet $helperSet The helperSet instance
* @param language $language Language object
*/
public function __construct(InputInterface $input, OutputInterface $output, HelperSet $helperSet, language $language)
{

View File

@@ -15,25 +15,23 @@ namespace phpbb\composer\io;
use Composer\IO\BufferIO;
use phpbb\language\language;
use Symfony\Component\Console\Helper\HelperSet;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Output\StreamOutput;
class web_io extends BufferIO
{
use translate_composer_trait;
/**
* Constructor.
*
* @param InputInterface $input The input instance
* @param OutputInterface $output The output instance
* @param HelperSet $helperSet The helperSet instance
* @param language $language Language object
* @param string $input Input string
* @param int $verbosity Verbosity level
* @param OutputFormatterInterface $formatter Output formatter
*/
public function __construct(InputInterface $input, OutputInterface $output, HelperSet $helperSet, language $language)
public function __construct(language $language, $input = '', $verbosity = StreamOutput::VERBOSITY_NORMAL, OutputFormatterInterface $formatter = null)
{
$this->language = $language;
parent::__construct($input, $output, $helperSet);
parent::__construct($input, $verbosity, $formatter);
}
}