protected function _normalizeConfig($config)
    {
        if (empty($config['driver'])) {
            if (empty($config['service'])) {
                throw new MissingConnectionException(['name' => $config['name']]);
            }

            if (!$config['driver'] = App::className($config['service'], 'Webservice/Driver')) {
                throw new MissingDriverException(['driver' => $config['driver']]);
            }
        }

        return $config;
    }
protected function _normalizeConfig($config)
    {
        if (empty($config['driver'])) {
            if (empty($config['service'])) {
                throw new MissingConnectionException(['name' => $config['name']]);
            }

            if (!$config['driver'] = App::className($config['service'], 'Webservice/Driver')) {
                throw new MissingDriverException(['driver' => $config['driver']]);
            }
        }

        return $config;
    }
protected function _normalizeConfig ( $ config ) { if ( empty ( $ config [ 'driver' ] ) ) { if ( empty ( $ config [ 'service' ] ) ) { throw new MissingConnectionException ( [ 'name' => $ config [ 'name' ] ] ) ; } if ( ! $ config [ 'driver' ] = App :: className ( $ config [ 'service' ] , 'Webservice/Driver' ) ) { throw new MissingDriverException ( [ 'driver' => $ config [ 'driver' ] ] ) ; } } return $ config ; }
Validates certain custom configuration values.

@param array $config Raw custom configuration.
@return array
@throws \Muffin\Webservice\Exception\MissingConnectionException If the connection does not exist.
@throws \Muffin\Webservice\Exception\MissingDriverException If the driver does not exist.
Validates certain custom configuration values .