Extends
lithium\core\StaticObject
Provides an extension point for modifying how adapters are instantiated.
Parameters
- string $class The fully-namespaced class name of the adapter to instantiate.
- array $config The configuration array to be passed to the adapter instance. See the `$config` parameter of `Object::__construct()`.
Returns
object The adapter's class.Source
protected static function _initAdapter($class, array $config) {
return static::_filter(__FUNCTION__, compact('class', 'config'), function($self, $params) {
return new $params['class']($params['config']);
});
}