Deprecate PingableConnection

parent 15ef0758
# Upgrade to 2.11 # Upgrade to 2.11
## The `PingableConnection` interface is deprecated
The wrapper connection will automatically handle the lost connection if the driver supports reporting it.
## The `ExceptionConverterDriver` interface is deprecated ## The `ExceptionConverterDriver` interface is deprecated
All drivers will have to implement the exception conversion API. All drivers will have to implement the exception conversion API.
......
...@@ -1925,6 +1925,8 @@ class Connection implements DriverConnection ...@@ -1925,6 +1925,8 @@ class Connection implements DriverConnection
* It is responsibility of the developer to handle this case * It is responsibility of the developer to handle this case
* and abort the request or reconnect manually: * and abort the request or reconnect manually:
* *
* @deprecated
*
* @return bool * @return bool
* *
* @example * @example
......
...@@ -281,6 +281,8 @@ class MysqliConnection implements ConnectionInterface, PingableConnection, Serve ...@@ -281,6 +281,8 @@ class MysqliConnection implements ConnectionInterface, PingableConnection, Serve
/** /**
* Pings the server and re-connects when `mysqli.reconnect = 1` * Pings the server and re-connects when `mysqli.reconnect = 1`
* *
* @deprecated
*
* @return bool * @return bool
*/ */
public function ping() public function ping()
......
...@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Driver; ...@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Driver;
/** /**
* An interface for connections which support a "native" ping method. * An interface for connections which support a "native" ping method.
*
* @deprecated
*/ */
interface PingableConnection interface PingableConnection
{ {
......
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