mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 01:43:45 +02:00
[ticket/14499] Add command to update the board from CLI
PHPBB3-14499
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
namespace phpbb\install\console\command\install\config;
|
||||
|
||||
use phpbb\install\helper\iohandler\factory;
|
||||
use phpbb\install\installer;
|
||||
use phpbb\install\installer_configuration;
|
||||
use phpbb\language\language;
|
||||
use Symfony\Component\Config\Definition\Exception\Exception;
|
||||
@@ -33,11 +32,6 @@ class show extends \phpbb\console\command\command
|
||||
*/
|
||||
protected $iohandler_factory;
|
||||
|
||||
/**
|
||||
* @var installer
|
||||
*/
|
||||
protected $installer;
|
||||
|
||||
/**
|
||||
* @var language
|
||||
*/
|
||||
@@ -48,12 +42,10 @@ class show extends \phpbb\console\command\command
|
||||
*
|
||||
* @param language $language
|
||||
* @param factory $factory
|
||||
* @param installer $installer
|
||||
*/
|
||||
public function __construct(language $language, factory $factory, installer $installer)
|
||||
public function __construct(language $language, factory $factory)
|
||||
{
|
||||
$this->iohandler_factory = $factory;
|
||||
$this->installer = $installer;
|
||||
$this->language = $language;
|
||||
|
||||
parent::__construct(new \phpbb\user($language, 'datetime'));
|
||||
@@ -126,6 +118,6 @@ class show extends \phpbb\console\command\command
|
||||
return;
|
||||
}
|
||||
|
||||
$iohandler->add_log_message(Yaml::dump(array('installer' => $config), 10, 4, true, false));
|
||||
$style->block(Yaml::dump(array('installer' => $config), 10, 4, true, false));
|
||||
}
|
||||
}
|
||||
|
@@ -14,7 +14,6 @@
|
||||
namespace phpbb\install\console\command\install\config;
|
||||
|
||||
use phpbb\install\helper\iohandler\factory;
|
||||
use phpbb\install\installer;
|
||||
use phpbb\install\installer_configuration;
|
||||
use phpbb\language\language;
|
||||
use Symfony\Component\Config\Definition\Exception\Exception;
|
||||
@@ -33,11 +32,6 @@ class validate extends \phpbb\console\command\command
|
||||
*/
|
||||
protected $iohandler_factory;
|
||||
|
||||
/**
|
||||
* @var installer
|
||||
*/
|
||||
protected $installer;
|
||||
|
||||
/**
|
||||
* @var language
|
||||
*/
|
||||
@@ -48,12 +42,10 @@ class validate extends \phpbb\console\command\command
|
||||
*
|
||||
* @param language $language
|
||||
* @param factory $factory
|
||||
* @param installer $installer
|
||||
*/
|
||||
public function __construct(language $language, factory $factory, installer $installer)
|
||||
public function __construct(language $language, factory $factory)
|
||||
{
|
||||
$this->iohandler_factory = $factory;
|
||||
$this->installer = $installer;
|
||||
$this->language = $language;
|
||||
|
||||
parent::__construct(new \phpbb\user($language, 'datetime'));
|
||||
|
@@ -109,7 +109,7 @@ class install extends \phpbb\console\command\command
|
||||
|
||||
if ($this->install_helper->is_phpbb_installed())
|
||||
{
|
||||
$iohandler->add_error_message('PHPBB_ALREADY_INSTALLED');
|
||||
$iohandler->add_error_message('INSTALL_PHPBB_INSTALLED');
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user