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:
@@ -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
|
||||
{
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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());
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user