Skip to content
Permalink
Browse files

Use new config setter in connection manager

  • Loading branch information...
dakota committed Jan 23, 2017
1 parent b7680a2 commit e8baecdaadc28786f289e1c8bfafd7d0cc85c701
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Datasource/ConnectionManager.php
@@ -30,7 +30,7 @@ class ConnectionManager
{
use StaticConfigTrait {
config as protected _config;
setConfig as protected _setConfig;
parseDsn as protected _parseDsn;
}
@@ -71,13 +71,13 @@ class ConnectionManager
* @throws \Cake\Core\Exception\Exception When trying to modify an existing config.
* @see \Cake\Core\StaticConfigTrait::config()
*/
public static function config($key, $config = null)
public static function setConfig($key, $config = null)
{
if (is_array($config)) {
$config['name'] = $key;
}
return static::_config($key, $config);
return static::_setConfig($key, $config);
}
/**

0 comments on commit e8baecd

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