aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-10-25 12:03:13 -0700
committerMarc Alexander <admin@m-a-styles.de>2014-10-25 12:03:13 -0700
commit078e0c1e440f7f906b670348e8da00141e245876 (patch)
treee0a908182b5ae86fb1d1a3f4b2803dd14f8bb063 /phpBB/phpbb/db
parent84434630065c2491cfa5e65a69b8b22d6844b6f4 (diff)
downloadforums-078e0c1e440f7f906b670348e8da00141e245876.tar
forums-078e0c1e440f7f906b670348e8da00141e245876.tar.gz
forums-078e0c1e440f7f906b670348e8da00141e245876.tar.bz2
forums-078e0c1e440f7f906b670348e8da00141e245876.tar.xz
forums-078e0c1e440f7f906b670348e8da00141e245876.zip
[ticket/13211] Move console migrator output handler back to console folder
PHPBB3-13211
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/console_migrator_output_handler.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/phpBB/phpbb/db/console_migrator_output_handler.php b/phpBB/phpbb/db/console_migrator_output_handler.php
deleted file mode 100644
index 6f98995403..0000000000
--- a/phpBB/phpbb/db/console_migrator_output_handler.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
-*
-* This file is part of the phpBB Forum Software package.
-*
-* @copyright (c) phpBB Limited <https://www.phpbb.com>
-* @license GNU General Public License, version 2 (GPL-2.0)
-*
-* For full copyright and license information, please see
-* the docs/CREDITS.txt file.
-*
-*/
-
-namespace phpbb\db;
-
-use phpbb\user;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class console_migrator_output_handler implements migrator_output_handler_interface
-{
- /**
- * User object.
- *
- * @var user
- */
- private $user;
-
- /**
- * Console output object.
- *
- * @var OutputInterface
- */
- private $output;
-
- /**
- * Constructor
- *
- * @param user $user User object
- * @param OutputInterface $output Console output object
- */
- public function __construct(user $user, OutputInterface $output)
- {
- $this->user = $user;
- $this->output = $output;
- }
-
- /**
- * {@inheritdoc}
- */
- public function write($message, $verbosity)
- {
- if ($verbosity <= $this->output->getVerbosity())
- {
- $translated_message = call_user_func_array(array($this->user, 'lang'), $message);
-
- if ($verbosity === migrator_output_handler_interface::VERBOSITY_NORMAL)
- {
- $translated_message = '<info>' . $translated_message . '</info>';
- }
- else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERBOSE)
- {
- $translated_message = '<comment>' . $translated_message . '</comment>';
- }
-
- $this->output->writeln($translated_message);
- }
- }
-}