Completed
Push — master ( 08d649...702658 )
by Jeremy
02:55
created

CustomPostgreSQLDriver::getSchemaManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Wallabag\CoreBundle\Doctrine\DBAL\Driver;
4
5
use Doctrine\DBAL\Connection;
6
use Doctrine\DBAL\Driver\PDOPgSql\Driver;
7
use Wallabag\CoreBundle\Doctrine\DBAL\Schema\CustomPostgreSqlSchemaManager;
8
9
/**
10
 * This custom driver allow to use a different schema manager
11
 * So we can fix the PostgreSQL 10 problem.
12
 *
13
 * @see https://github.com/wallabag/wallabag/issues/3479
14
 * @see https://github.com/doctrine/dbal/issues/2868
15
 */
16
class CustomPostgreSQLDriver extends Driver
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getSchemaManager(Connection $conn)
22
    {
23
        return new CustomPostgreSqlSchemaManager($conn);
24
    }
25
}
26