Deprecate Driver::getDatabase()

parent 0c8528ec
# Upgrade to 2.11 # Upgrade to 2.11
## Deprecated `Doctrine\DBAL\Driver::getDatabase()`
- The usage of `Doctrine\DBAL\Driver::getDatabase()` is deprecated. Please use `Doctrine\DBAL\Connection::getDatabase()` instead.
- The behavior of the SQLite connection returning the database file path as the database is deprecated and shouldn't be relied upon.
## Deprecated `Portability\Connection::PORTABILITY_{PLATFORM}` constants` ## Deprecated `Portability\Connection::PORTABILITY_{PLATFORM}` constants`
The platform-specific portability mode flags are meant to be used only by the portability layer internally to optimize The platform-specific portability mode flags are meant to be used only by the portability layer internally to optimize
......
...@@ -53,6 +53,8 @@ interface Driver ...@@ -53,6 +53,8 @@ interface Driver
/** /**
* Gets the name of the database connected to for this driver. * Gets the name of the database connected to for this driver.
* *
* @deprecated Use Connection::getDatabase() instead.
*
* @return string The name of the database. * @return string The name of the database.
*/ */
public function getDatabase(Connection $conn); public function getDatabase(Connection $conn);
......
...@@ -14,6 +14,8 @@ abstract class AbstractDB2Driver implements Driver ...@@ -14,6 +14,8 @@ abstract class AbstractDB2Driver implements Driver
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -197,6 +197,8 @@ abstract class AbstractMySQLDriver implements Driver, ExceptionConverterDriver, ...@@ -197,6 +197,8 @@ abstract class AbstractMySQLDriver implements Driver, ExceptionConverterDriver,
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -59,6 +59,8 @@ abstract class AbstractOracleDriver implements Driver, ExceptionConverterDriver ...@@ -59,6 +59,8 @@ abstract class AbstractOracleDriver implements Driver, ExceptionConverterDriver
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -115,6 +115,8 @@ abstract class AbstractPostgreSQLDriver implements Driver, ExceptionConverterDri ...@@ -115,6 +115,8 @@ abstract class AbstractPostgreSQLDriver implements Driver, ExceptionConverterDri
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -117,6 +117,8 @@ abstract class AbstractSQLAnywhereDriver implements Driver, ExceptionConverterDr ...@@ -117,6 +117,8 @@ abstract class AbstractSQLAnywhereDriver implements Driver, ExceptionConverterDr
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -58,6 +58,8 @@ abstract class AbstractSQLServerDriver implements Driver, VersionAwarePlatformDr ...@@ -58,6 +58,8 @@ abstract class AbstractSQLServerDriver implements Driver, VersionAwarePlatformDr
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
...@@ -79,6 +79,8 @@ abstract class AbstractSQLiteDriver implements Driver, ExceptionConverterDriver ...@@ -79,6 +79,8 @@ abstract class AbstractSQLiteDriver implements Driver, ExceptionConverterDriver
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/ */
public function getDatabase(Connection $conn) public function getDatabase(Connection $conn)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment