aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/db/revert.php
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-12-08 14:25:09 -0800
committerMatt Friedman <maf675@gmail.com>2016-12-08 14:25:09 -0800
commitcbf6d71f6859fd6c036967ed19082f3e54efc328 (patch)
tree0db265f8f3679b7a2004f4100fc33f5106a733d9 /phpBB/phpbb/console/command/db/revert.php
parentb17fa7dfa588fc191f4ed268b88dcaec40294acb (diff)
downloadforums-cbf6d71f6859fd6c036967ed19082f3e54efc328.tar
forums-cbf6d71f6859fd6c036967ed19082f3e54efc328.tar.gz
forums-cbf6d71f6859fd6c036967ed19082f3e54efc328.tar.bz2
forums-cbf6d71f6859fd6c036967ed19082f3e54efc328.tar.xz
forums-cbf6d71f6859fd6c036967ed19082f3e54efc328.zip
[ticket/14895] Fix issues in CLI classes
PHPBB3-14895
Diffstat (limited to 'phpBB/phpbb/console/command/db/revert.php')
-rw-r--r--phpBB/phpbb/console/command/db/revert.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/phpBB/phpbb/console/command/db/revert.php b/phpBB/phpbb/console/command/db/revert.php
index 7977afc319..3c79d8c554 100644
--- a/phpBB/phpbb/console/command/db/revert.php
+++ b/phpBB/phpbb/console/command/db/revert.php
@@ -18,35 +18,17 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
-class revert extends \phpbb\console\command\db\migration_command
+class revert extends \phpbb\console\command\db\migrate
{
- /** @var string phpBB root path */
- protected $phpbb_root_path;
-
- /** @var \phpbb\filesystem\filesystem_interface */
- protected $filesystem;
-
- /** @var \phpbb\language\language */
- protected $language;
-
- function __construct(\phpbb\user $user, \phpbb\language\language $language, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache, \phpbb\filesystem\filesystem_interface $filesystem, $phpbb_root_path)
- {
- $this->filesystem = $filesystem;
- $this->language = $language;
- $this->phpbb_root_path = $phpbb_root_path;
- parent::__construct($user, $migrator, $extension_manager, $config, $cache);
- $this->user->add_lang(array('common', 'migrator'));
- }
-
protected function configure()
{
$this
->setName('db:revert')
- ->setDescription($this->user->lang('CLI_DESCRIPTION_DB_REVERT'))
+ ->setDescription($this->language->lang('CLI_DESCRIPTION_DB_REVERT'))
->addArgument(
'name',
InputArgument::REQUIRED,
- $this->user->lang('CLI_MIGRATION_NAME')
+ $this->language->lang('CLI_MIGRATION_NAME')
)
;
}