1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/16649] Changes for Symfony 5

PHPBB3-16649
This commit is contained in:
rubencm
2020-12-07 03:54:52 +01:00
committed by rxu
parent 19b12bf6ee
commit 157a8aca01
14 changed files with 22 additions and 20 deletions

View File

@@ -14,6 +14,7 @@
namespace phpbb\console\command\cron;
use phpbb\exception\runtime_exception;
use Symfony\Component\Console\Command\Command as symfony_command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;
@@ -90,7 +91,8 @@ class run extends \phpbb\console\command\command
}
$this->lock_db->release();
return $exit_status;
return !$exit_status ? symfony_command::SUCCESS : symfony_command::FAILURE;
}
else
{

View File

@@ -85,13 +85,13 @@ class list_command extends \phpbb\console\command\db\migration_command
if (!empty($available))
{
$io->listing($available);
return symfony_command::SUCCESS;
}
else
{
$io->text($this->user->lang('CLI_MIGRATIONS_EMPTY'));
$io->newLine();
return symfony_command::FAILURE;
}
return symfony_command::SUCCESS;
}
}

View File

@@ -73,7 +73,7 @@ class install extends \phpbb\console\command\command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return integer
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

View File

@@ -53,7 +53,7 @@ class list_available extends \phpbb\console\command\command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return integer
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

View File

@@ -67,7 +67,7 @@ class manage extends \phpbb\console\command\command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return integer
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

View File

@@ -50,7 +50,7 @@ class show extends command
if (empty($all))
{
$io->note($this->user->lang('CLI_EXTENSION_NOT_FOUND'));
return 3;
return symfony_command::FAILURE;
}
$enabled = array_keys($this->manager->all_enabled());

View File

@@ -60,7 +60,7 @@ class list_all extends \phpbb\console\command\command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return integer
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

View File

@@ -127,7 +127,7 @@ class reparse extends \phpbb\console\command\command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return integer
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

View File

@@ -99,7 +99,7 @@ class check extends \phpbb\console\command\command
if (!($stability == 'stable') && !($stability == 'unstable'))
{
$io->error($this->language->lang('CLI_ERROR_INVALID_STABILITY', $stability));
return 3;
return symfony_command::FAILURE;
}
}