lithium\data\Connections::_class()
Overrides
lithium\core\Adaptable::_class()
Constructs a data source or adapter object instance from a configuration array.
Parameters
-
array
$config
-
array
$paths
Returns
objectSource
protected static function _class($config, $paths = []) {
if (!$config['adapter']) {
$config['adapter'] = $config['type'];
} else {
$paths = array_merge(["adapter.data.source.{$config['type']}"], (array) $paths);
}
return parent::_class($config, $paths);
}