private function createDriver(array $config)
	{
		if (empty($config['driver'])) {
			throw new InvalidStateException('Undefined driver');
		} elseif ($config['driver'] instanceof IDriver) {
			return $config['driver'];
		} else {
			$name = ucfirst($config['driver']);
			$class = "Mva\\Dbm\\Driver\\{$name}\\{$name}Driver";
			return new $class;
		}
	}
private function createDriver(array $config)
	{
		if (empty($config['driver'])) {
			throw new InvalidStateException('Undefined driver');
		} elseif ($config['driver'] instanceof IDriver) {
			return $config['driver'];
		} else {
			$name = ucfirst($config['driver']);
			$class = "Mva\\Dbm\\Driver\\{$name}\\{$name}Driver";
			return new $class;
		}
	}
private function createDriver ( array $ config ) { if ( empty ( $ config [ 'driver' ] ) ) { throw new InvalidStateException ( 'Undefined driver' ) ; } elseif ( $ config [ 'driver' ] instanceof IDriver ) { return $ config [ 'driver' ] ; } else { $ name = ucfirst ( $ config [ 'driver' ] ) ; $ class = "Mva\\Dbm\\Driver\\{$name}\\{$name}Driver" ; return new $ class ; } }
Creates a IDriver instance.
@param  array $config
@return Driver\IDriver
Creates a IDriver instance .