Skip to content
Permalink
Browse files

Return connection status in debug.

  • Loading branch information...
robertpustulka committed Sep 9, 2014
1 parent 735780d commit c9e83a2dc3ba6f2c5e00d34fdd012b666c1a964c
Showing with 1 addition and 17 deletions.
  1. +1 −17 src/Database/Driver.php
@@ -323,24 +323,8 @@ public function __destruct() {
* @return array
*/
public function __debugInfo() {
$secrets = [
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'schema' => '*****'
];
$replace = array_intersect_key($secrets, $this->_config);
return [
'_baseConfig' => $replace + $this->_baseConfig,
'_config' => $replace + $this->_config,
'_autoQuoting' => $this->_autoQuoting,
'_startQuote' => $this->_startQuote,
'_endQuote' => $this->_endQuote,
'_schemaDialect' => get_class($this->_schemaDialect)
'connected' => $this->isConnected()
];
}

0 comments on commit c9e83a2

Please sign in to comment.
You can’t perform that action at this time.