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);
	}
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);
	}
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 ) ; }
Constructs a data source or adapter object instance from a configuration array.

@param array $config
@param array $paths
@return object
Constructs a data source or adapter object instance from a configuration array .