[ticket/13211] Move console migrator output handler back to console folder

PHPBB3-13211
This commit is contained in:
Marc Alexander 2014-10-25 12:03:13 -07:00
parent 8443463006
commit 078e0c1e44
2 changed files with 3 additions and 2 deletions

View file

@ -11,9 +11,10 @@
* *
*/ */
namespace phpbb\db; namespace phpbb\console\command\db;
use phpbb\user; use phpbb\user;
use phpbb\db\migrator_output_handler_interface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
class console_migrator_output_handler implements migrator_output_handler_interface class console_migrator_output_handler implements migrator_output_handler_interface

View file

@ -57,7 +57,7 @@ class migrate extends \phpbb\console\command\command
protected function execute(InputInterface $input, OutputInterface $output) 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(); $this->migrator->create_migrations_table();