Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| middleware | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| wrap | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 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\middleware\postgresql; |
| 15 | |
| 16 | use Doctrine\DBAL\Driver; |
| 17 | use phpbb\db\middleware\postgresql\driver as postgresql_driver; |
| 18 | |
| 19 | /** |
| 20 | * PostgreSQL Doctrine middleware. |
| 21 | * Makes use of phpBB's PostgreSQL specific platform. |
| 22 | */ |
| 23 | class middleware implements Driver\Middleware |
| 24 | { |
| 25 | public function wrap(Driver $driver): Driver |
| 26 | { |
| 27 | return new postgresql_driver($driver); |
| 28 | } |
| 29 | } |