public static function gaufretteFactory(array $adapter) {
		$class = $adapter['adapterClass'];
		$Reflection = new ReflectionClass($class);

		if (!is_array($adapter['adapterOptions'])) {
			throw new InvalidArgumentException(sprintf('%s: The adapter options must be an array!', $configName));
		}

		$adapterObject = $Reflection->newInstanceArgs($adapter['adapterOptions']);

		return new $adapter['class']($adapterObject);
	}
public static function gaufretteFactory(array $adapter) {
		$class = $adapter['adapterClass'];
		$Reflection = new ReflectionClass($class);

		if (!is_array($adapter['adapterOptions'])) {
			throw new InvalidArgumentException(sprintf('%s: The adapter options must be an array!', $configName));
		}

		$adapterObject = $Reflection->newInstanceArgs($adapter['adapterOptions']);

		return new $adapter['class']($adapterObject);
	}
public static function gaufretteFactory ( array $ adapter ) { $ class = $ adapter [ 'adapterClass' ] ; $ Reflection = new ReflectionClass ( $ class ) ; if ( ! is_array ( $ adapter [ 'adapterOptions' ] ) ) { throw new InvalidArgumentException ( sprintf ( '%s: The adapter options must be an array!' , $ configName ) ) ; } $ adapterObject = $ Reflection -> newInstanceArgs ( $ adapter [ 'adapterOptions' ] ) ; return new $ adapter [ 'class' ] ( $ adapterObject ) ; }
Instantiates Gaufrette adapters.

@param array $adapter
@return object
Instantiates Gaufrette adapters .