From 078e0c1e440f7f906b670348e8da00141e245876 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 25 Oct 2014 12:03:13 -0700 Subject: [PATCH] [ticket/13211] Move console migrator output handler back to console folder PHPBB3-13211 --- .../command}/db/console_migrator_output_handler.php | 3 ++- phpBB/phpbb/console/command/db/migrate.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename phpBB/phpbb/{ => console/command}/db/console_migrator_output_handler.php (94%) diff --git a/phpBB/phpbb/db/console_migrator_output_handler.php b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php similarity index 94% rename from phpBB/phpbb/db/console_migrator_output_handler.php rename to phpBB/phpbb/console/command/db/console_migrator_output_handler.php index 6f98995403..b9741a3838 100644 --- a/phpBB/phpbb/db/console_migrator_output_handler.php +++ b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php @@ -11,9 +11,10 @@ * */ -namespace phpbb\db; +namespace phpbb\console\command\db; use phpbb\user; +use phpbb\db\migrator_output_handler_interface; use Symfony\Component\Console\Output\OutputInterface; class console_migrator_output_handler implements migrator_output_handler_interface diff --git a/phpBB/phpbb/console/command/db/migrate.php b/phpBB/phpbb/console/command/db/migrate.php index 76550a8429..87c2a057d1 100644 --- a/phpBB/phpbb/console/command/db/migrate.php +++ b/phpBB/phpbb/console/command/db/migrate.php @@ -57,7 +57,7 @@ class migrate extends \phpbb\console\command\command protected function execute(InputInterface $input, OutputInterface $output) { - $this->migrator->set_output_handler(new \phpbb\db\log_wrapper_migrator_output_handler($this->user, new \phpbb\db\console_migrator_output_handler($this->user, $output), $this->phpbb_root_path . 'store/migrations_' . time() . '.log')); + $this->migrator->set_output_handler(new \phpbb\db\log_wrapper_migrator_output_handler($this->user, new console_migrator_output_handler($this->user, $output), $this->phpbb_root_path . 'store/migrations_' . time() . '.log')); $this->migrator->create_migrations_table();