lithium\data\Connections::_class PHP Method

_class() protected static method

Constructs a data source or adapter object instance from a configuration array.
protected static _class ( array $config, array $paths = [] ) : object
$config array
$paths array
return object
    protected static function _class($config, $paths = array())
    {
        if (!$config['adapter']) {
            $config['adapter'] = $config['type'];
        } else {
            $paths = array_merge(array("adapter.data.source.{$config['type']}"), (array) $paths);
        }
        return parent::_class($config, $paths);
    }