mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11150] Disable if directories not writable
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
0a809fb90e
commit
cc0a762866
@@ -57,7 +57,7 @@ class install extends \phpbb\console\command\command
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_EXTENSION_INSTALL'))
|
||||
->addOption(
|
||||
'enable',
|
||||
'e',
|
||||
null,
|
||||
InputOption::VALUE_NONE,
|
||||
$this->language->lang('CLI_DESCRIPTION_EXTENSION_INSTALL_OPTION_ENABLE'))
|
||||
->addArgument(
|
||||
@@ -79,6 +79,13 @@ class install extends \phpbb\console\command\command
|
||||
$output->getFormatter()->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
|
||||
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
if (!$this->manager->check_requirements())
|
||||
{
|
||||
$io->error($this->language->lang('EXTENSIONS_COMPOSER_NOT_WRITABLE'));
|
||||
return 1;
|
||||
}
|
||||
|
||||
$composer_io = new console_io($input, $output, $this->getHelperSet(), $this->language);
|
||||
$extensions = $input->getArgument('extensions');
|
||||
|
||||
|
@@ -72,6 +72,13 @@ class manage extends \phpbb\console\command\command
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
if (!$this->manager->check_requirements())
|
||||
{
|
||||
$io->error($this->language->lang('EXTENSIONS_COMPOSER_NOT_WRITABLE'));
|
||||
return 1;
|
||||
}
|
||||
|
||||
$composer_io = new console_io($input, $output, $this->getHelperSet(), $this->language);
|
||||
|
||||
$extension = $input->getArgument('extension');
|
||||
|
@@ -57,7 +57,7 @@ class remove extends \phpbb\console\command\command
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_EXTENSION_REMOVE'))
|
||||
->addOption(
|
||||
'purge',
|
||||
'p',
|
||||
null,
|
||||
InputOption::VALUE_NONE,
|
||||
$this->language->lang('CLI_DESCRIPTION_EXTENSION_REMOVE_OPTION_PURGE'))
|
||||
->addArgument(
|
||||
@@ -79,6 +79,13 @@ class remove extends \phpbb\console\command\command
|
||||
$output->getFormatter()->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
|
||||
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
if (!$this->manager->check_requirements())
|
||||
{
|
||||
$io->error($this->language->lang('EXTENSIONS_COMPOSER_NOT_WRITABLE'));
|
||||
return 1;
|
||||
}
|
||||
|
||||
$composer_io = new console_io($input, $output, $this->getHelperSet(), $this->language);
|
||||
$extensions = $input->getArgument('extensions');
|
||||
|
||||
|
@@ -71,6 +71,13 @@ class update extends \phpbb\console\command\command
|
||||
$output->getFormatter()->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
|
||||
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
if (!$this->manager->check_requirements())
|
||||
{
|
||||
$io->error($this->language->lang('EXTENSIONS_COMPOSER_NOT_WRITABLE'));
|
||||
return 1;
|
||||
}
|
||||
|
||||
$composer_io = new console_io($input, $output, $this->getHelperSet(), $this->language);
|
||||
$extensions = $input->getArgument('extensions');
|
||||
|
||||
|
Reference in New Issue
Block a user