Skip to content

Commit

Permalink
Return connection status in debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Sep 9, 2014
1 parent 735780d commit c9e83a2
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/Database/Driver.php
Expand Up @@ -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()
];
}

Expand Down

0 comments on commit c9e83a2

Please sign in to comment.