Skip to content

Commit dd5ae7d

Browse files
authored
Remove duplicate of code (#180)
1 parent f365d42 commit dd5ae7d

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/ConnectionPDO.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,4 @@ public function getSchema(): SchemaInterface
8787

8888
return $this->schema;
8989
}
90-
91-
/**
92-
* Initializes the DB connection.
93-
*
94-
* This method is invoked right after the DB connection is established.
95-
*
96-
* The default implementation turns on `PDO::ATTR_EMULATE_PREPARES`.
97-
*
98-
* if {@see emulatePrepare} is true, and sets the database {@see charset} if it is not empty.
99-
*
100-
* It then triggers an {@see EVENT_AFTER_OPEN} event.
101-
*/
102-
protected function initConnection(): void
103-
{
104-
if ($this->getEmulatePrepare() !== null) {
105-
$this->driver->attributes([PDO::ATTR_EMULATE_PREPARES => $this->getEmulatePrepare()]);
106-
}
107-
108-
$this->pdo = $this->driver->createConnection();
109-
}
11090
}

0 commit comments

Comments
 (0)