From 8f6fcd2744a80795139600c2a7c1f46f59b8cbfe Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 20 Oct 2014 19:38:04 +0200 Subject: [ticket/13126] Move migrator_output_handler to an interface PHPBB3-13126 --- .../console/command/db/console_migrator_output_handler.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'phpBB/phpbb/console/command') 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 = '' . $translated_message . ''; } - else if ($verbosity === \phpbb\db\migrator_output_handler::VERBOSITY_VERY_VERBOSE) + else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERY_VERBOSE) { $translated_message = '' . $translated_message . ''; } -- cgit v1.2.1