aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-10-20 19:38:04 +0200
committerTristan Darricau <github@nicofuma.fr>2014-10-20 19:41:32 +0200
commit8f6fcd2744a80795139600c2a7c1f46f59b8cbfe (patch)
treef9d409e033b2ee417fae544d03d4990133a650ff /phpBB/phpbb/console/command
parent58075e25e8173ec663e4e8908d1963b1947a225b (diff)
downloadforums-8f6fcd2744a80795139600c2a7c1f46f59b8cbfe.tar
forums-8f6fcd2744a80795139600c2a7c1f46f59b8cbfe.tar.gz
forums-8f6fcd2744a80795139600c2a7c1f46f59b8cbfe.tar.bz2
forums-8f6fcd2744a80795139600c2a7c1f46f59b8cbfe.tar.xz
forums-8f6fcd2744a80795139600c2a7c1f46f59b8cbfe.zip
[ticket/13126] Move migrator_output_handler to an interface
PHPBB3-13126
Diffstat (limited to 'phpBB/phpbb/console/command')
-rw-r--r--phpBB/phpbb/console/command/db/console_migrator_output_handler.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/phpBB/phpbb/console/command/db/console_migrator_output_handler.php b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
index be6c2ccd7a..0c494cea63 100644
--- a/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
+++ b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
@@ -17,7 +17,7 @@ use phpbb\user;
use phpbb\db\migrator_output_handler;
use Symfony\Component\Console\Output\OutputInterface;
-class console_migrator_output_handler extends migrator_output_handler
+class console_migrator_output_handler implements migrator_output_handler_interface
{
/**
* User object.
@@ -46,10 +46,7 @@ class console_migrator_output_handler extends migrator_output_handler
}
/**
- * Write output using the configured closure.
- *
- * @param string|array $message The message to write or an array containing the language key and all of its parameters.
- * @param int $verbosity The verbosity of the message.
+ * {@inheritdoc}
*/
public function write($message, $verbosity)
{
@@ -57,11 +54,11 @@ class console_migrator_output_handler extends migrator_output_handler
{
$translated_message = call_user_func_array(array($this->user, 'lang'), $message);
- if ($verbosity === \phpbb\db\migrator_output_handler::VERBOSITY_NORMAL)
+ if ($verbosity === migrator_output_handler_interface::VERBOSITY_NORMAL)
{
$translated_message = '<info>' . $translated_message . '</info>';
}
- else if ($verbosity === \phpbb\db\migrator_output_handler::VERBOSITY_VERY_VERBOSE)
+ else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERY_VERBOSE)
{
$translated_message = '<comment>' . $translated_message . '</comment>';
}