lithium\data\Connections::_class()

protected static method

Constructs a data source or adapter object instance from a configuration array.

Parameters

  • array $config
  • array $paths

Returns

object

Source

	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);
	}