1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/16790] Remove useless command parameter

PHPBB3-16790
This commit is contained in:
Ruben Calvo
2021-12-01 12:14:06 +01:00
parent 2f41ce219c
commit 0650d6f302
12 changed files with 42 additions and 81 deletions

View File

@@ -44,9 +44,9 @@ class recreate extends \phpbb\console\command\command
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$parameters = array(
'command' => 'thumbnail:delete'
);
$command = $this->getApplication()->find('thumbnail:delete');
$parameters = [];
if ($input->getOption('verbose'))
{
@@ -56,14 +56,14 @@ class recreate extends \phpbb\console\command\command
$this->getApplication()->setAutoExit(false);
$input_delete = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_delete, $output);
$return = $command->run($input_delete, $output);
if ($return === symfony_command::SUCCESS)
{
$parameters['command'] = 'thumbnail:generate';
$command = $this->getApplication()->find('thumbnail:generate');
$input_create = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_create, $output);
$input_create = new ArrayInput([]);
$return = $command->run($input_create, $output);
}
$this->getApplication()->setAutoExit(true);