Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
installer_migrator_output_handler | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
write | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | /** |
3 | * |
4 | * This file is part of the phpBB Forum Software package. |
5 | * |
6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
7 | * @license GNU General Public License, version 2 (GPL-2.0) |
8 | * |
9 | * For full copyright and license information, please see |
10 | * the docs/CREDITS.txt file. |
11 | * |
12 | */ |
13 | |
14 | namespace phpbb\db\output_handler; |
15 | |
16 | use phpbb\install\helper\iohandler\iohandler_interface; |
17 | |
18 | class installer_migrator_output_handler implements migrator_output_handler_interface |
19 | { |
20 | /** |
21 | * @var iohandler_interface |
22 | */ |
23 | protected $iohandler; |
24 | |
25 | /** |
26 | * Constructor |
27 | * |
28 | * @param iohandler_interface $iohandler Installer's IO-handler |
29 | */ |
30 | public function __construct(iohandler_interface $iohandler) |
31 | { |
32 | $this->iohandler = $iohandler; |
33 | } |
34 | |
35 | /** |
36 | * {@inheritdoc} |
37 | */ |
38 | public function write($message, $verbosity) |
39 | { |
40 | if ($verbosity <= migrator_output_handler_interface::VERBOSITY_VERBOSE) |
41 | { |
42 | $this->iohandler->add_log_message($message); |
43 | $this->iohandler->send_response(); |
44 | } |
45 | } |
46 | } |