Skip to content

Commit

Permalink
Remove references to internal Doctrine class (#492)
Browse files Browse the repository at this point in the history
The Configuration class is defined as an internal class by Doctrine. Since we don't need to include an empty configuration instance anyways (Doctrine will just create it if it isn't provided), we can avoid referencing internal classes by just leaving it out.
  • Loading branch information
matslindh authored and christeredvartsen committed Sep 22, 2016
1 parent de36cf4 commit eb39edf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Database/Doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Imbo\Exception\DatabaseException,
Imbo\Exception\InvalidArgumentException,
Imbo\Exception,
Doctrine\DBAL\Configuration,
Doctrine\DBAL\DriverManager,
Doctrine\DBAL\Connection,
PDO,
Expand Down Expand Up @@ -643,7 +642,7 @@ private function setConnection(Connection $connection) {
*/
private function getConnection() {
if ($this->connection === null) {
$this->connection = DriverManager::getConnection($this->params, new Configuration());
$this->connection = DriverManager::getConnection($this->params);
}

return $this->connection;
Expand Down

0 comments on commit eb39edf

Please sign in to comment.