Skip to content

Commit

Permalink
Merge pull request #3553 from morozov/remove-driver-name
Browse files Browse the repository at this point in the history
Removed Driver::getName()
  • Loading branch information
morozov committed Nov 2, 2019
2 parents a4158b5 + 5857be4 commit 84e365d
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 373 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Upgrade to 3.0

## BC BREAK: `Doctrine\DBAL\Driver::getName()` removed

The `Doctrine\DBAL\Driver::getName()` has been removed.

## BC BREAK Removed previously deprecated features

* Removed `json_array` type and all associated hacks.
Expand Down
9 changes: 0 additions & 9 deletions lib/Doctrine/DBAL/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ public function getDatabasePlatform();
*/
public function getSchemaManager(Connection $conn);

/**
* Gets the name of the driver.
*
* @deprecated
*
* @return string The name of the driver.
*/
public function getName();

/**
* Gets the name of the database connected to for this driver.
*
Expand Down
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,4 @@ public function connect(array $params, $username = null, $password = null, array

return new DB2Connection($params, (string) $username, (string) $password, $driverOptions);
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'ibm_db2';
}
}
8 changes: 0 additions & 8 deletions lib/Doctrine/DBAL/Driver/Mysqli/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,4 @@ public function connect(array $params, $username = null, $password = null, array
throw DBALException::driverException($this, $e);
}
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'mysqli';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/OCI8/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,4 @@ protected function _constructDsn(array $params)
{
return $this->getEasyConnectString($params);
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'oci8';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,4 @@ protected function constructPdoDsn(array $params)

return $dsn;
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'pdo_mysql';
}
}
8 changes: 0 additions & 8 deletions lib/Doctrine/DBAL/Driver/PDOOracle/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,4 @@ private function constructPdoDsn(array $params)

return $dsn;
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'pdo_oracle';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,4 @@ private function _constructPdoDsn(array $params)

return $dsn;
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'pdo_pgsql';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,4 @@ protected function _constructPdoDsn(array $params)

return $dsn;
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'pdo_sqlite';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/PDOSqlsrv/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,4 @@ private function getConnectionOptionsDsn(array $connectionOptions) : string

return $connectionOptionsDsn;
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'pdo_sqlsrv';
}
}
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/SQLAnywhere/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ public function connect(array $params, $username = null, $password = null, array
}
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'sqlanywhere';
}

/**
* Build the connection string for given connection parameters and driver options.
*
Expand Down
10 changes: 0 additions & 10 deletions lib/Doctrine/DBAL/Driver/SQLSrv/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,4 @@ public function connect(array $params, $username = null, $password = null, array

return new SQLSrvConnection($serverName, $driverOptions);
}

/**
* {@inheritdoc}
*
* @deprecated
*/
public function getName()
{
return 'sqlsrv';
}
}
22 changes: 0 additions & 22 deletions tests/Doctrine/Tests/DBAL/Driver/IBMDB2/DB2DriverTest.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/Doctrine/Tests/DBAL/Driver/Mysqli/DriverTest.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/Doctrine/Tests/DBAL/Driver/OCI8/DriverTest.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/Doctrine/Tests/DBAL/Driver/PDOMySql/DriverTest.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/Doctrine/Tests/DBAL/Driver/PDOOracle/DriverTest.php

This file was deleted.

Loading

0 comments on commit 84e365d

Please sign in to comment.