Skip to content

Commit

Permalink
Deprecate Connection::getWrappedConnection(), mark Connection::connec…
Browse files Browse the repository at this point in the history
…t() internal
  • Loading branch information
morozov committed Nov 7, 2021
1 parent c355101 commit 7ad4dfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ awareness about deprecated code.

# Upgrade to 3.2

## Deprecated `Connection::getWrappedConnection()`, `Connection::connect()` made `@internal`.

The wrapper-level `Connection::getWrappedConnection()` method has been deprecated. Use a custom driver implementation
to access the underlying connection.

The `Connection::connect()` method has been marked internal. It will be marked `protected` in DBAL 4.0.

## Deprecated `AbstractSchemaManager::dropAndCreate*()` and `::tryMethod()` methods.

The following `AbstractSchemaManager::dropAndCreate*()` methods have been deprecated:
Expand Down
4 changes: 4 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ public function getExpressionBuilder()
/**
* Establishes the connection with the database.
*
* @internal This method will be made protected in DBAL 4.0.
*
* @return bool TRUE if the connection was successfully established, FALSE if
* the connection is already open.
*
Expand Down Expand Up @@ -1496,6 +1498,8 @@ public function rollbackSavepoint($savepoint)
/**
* Gets the wrapped driver connection.
*
* @deprecated Use a custom {@link Driver} implementation to access the underlying connection.
*
* @return DriverConnection
*
* @throws Exception
Expand Down

0 comments on commit 7ad4dfc

Please sign in to comment.