private function resolveConfiguration(array $options = []): void
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);
        $this->userAgentPrefix = $options[static::CONFIG_USER_AGENT_PREFIX];
        $this->httpClientBuilder = $options[static::CONFIG_HTTP_CLIENT_BUILDER] ?: new Builder();
        $this->uriFactory = $options[static::CONFIG_URI_FACTORY] ?: UriFactoryDiscovery::find();
        $this->requestFactory = $options[static::CONFIG_REQUEST_FACTORY] ?: MessageFactoryDiscovery::find();
        $this->journal = $options[static::CONFIG_JOURNAL] ?: new Journal();
        $this->errorFormatter = $options[static::CONFIG_ERROR_FORMATTER];
        $this->retryPluginConfig = $options[static::CONFIG_RETRY_PLUGIN_CONFIG];
    }
private function resolveConfiguration(array $options = []): void
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);
        $this->userAgentPrefix = $options[static::CONFIG_USER_AGENT_PREFIX];
        $this->httpClientBuilder = $options[static::CONFIG_HTTP_CLIENT_BUILDER] ?: new Builder();
        $this->uriFactory = $options[static::CONFIG_URI_FACTORY] ?: UriFactoryDiscovery::find();
        $this->requestFactory = $options[static::CONFIG_REQUEST_FACTORY] ?: MessageFactoryDiscovery::find();
        $this->journal = $options[static::CONFIG_JOURNAL] ?: new Journal();
        $this->errorFormatter = $options[static::CONFIG_ERROR_FORMATTER];
        $this->retryPluginConfig = $options[static::CONFIG_RETRY_PLUGIN_CONFIG];
    }
private function resolveConfiguration ( array $ options = [ ] ) : void { $ resolver = new OptionsResolver ( ) ; $ this -> configureOptions ( $ resolver ) ; $ options = $ resolver -> resolve ( $ options ) ; $ this -> userAgentPrefix = $ options [ static :: CONFIG_USER_AGENT_PREFIX ] ; $ this -> httpClientBuilder = $ options [ static :: CONFIG_HTTP_CLIENT_BUILDER ] ? : new Builder ( ) ; $ this -> uriFactory = $ options [ static :: CONFIG_URI_FACTORY ] ? : UriFactoryDiscovery :: find ( ) ; $ this -> requestFactory = $ options [ static :: CONFIG_REQUEST_FACTORY ] ? : MessageFactoryDiscovery :: find ( ) ; $ this -> journal = $ options [ static :: CONFIG_JOURNAL ] ? : new Journal ( ) ; $ this -> errorFormatter = $ options [ static :: CONFIG_ERROR_FORMATTER ] ; $ this -> retryPluginConfig = $ options [ static :: CONFIG_RETRY_PLUGIN_CONFIG ] ; }
Resolve configuration options.

@param array $options
Array of configuration options.
Resolve configuration options .