protected static function _initAdapter($class, array $config) {
		$params = compact('class', 'config');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			return new $params['class']($params['config']);
		});
	}
protected static function _initAdapter($class, array $config) {
		$params = compact('class', 'config');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			return new $params['class']($params['config']);
		});
	}
protected static function _initAdapter ( $ class , array $ config ) { $ params = compact ( 'class' , 'config' ) ; return Filters :: run ( get_called_class ( ) , __FUNCTION__ , $ params , function ( $ params ) { return new $ params [ 'class' ] ( $ params [ 'config' ] ) ; } ) ; }
Provides an extension point for modifying how adapters are instantiated.

@see lithium\core\Object::__construct()
@param string $class The fully-namespaced class name of the adapter to instantiate.
@param array $config The configuration array to be passed to the adapter instance. See the
`$config` parameter of `Object::__construct()`.
@return object The adapter's class.
@filter
Provides an extension point for modifying how adapters are instantiated .