public function build()
    {
        $config           = $this->getConfig();
        $cluster          = $this->getCluster();
        $resolverFactory  = $config->getResolverFactory();
        $converterFactory = $config->getConverterFactory();

        $cluster->setNodes($this->nodes);
        $resolverFactory->setResolvers($this->resolvers);
        $converterFactory->setConverters($this->converters);

        return new RiakClient($config, $cluster);
    }
public function build()
    {
        $config           = $this->getConfig();
        $cluster          = $this->getCluster();
        $resolverFactory  = $config->getResolverFactory();
        $converterFactory = $config->getConverterFactory();

        $cluster->setNodes($this->nodes);
        $resolverFactory->setResolvers($this->resolvers);
        $converterFactory->setConverters($this->converters);

        return new RiakClient($config, $cluster);
    }
public function build ( ) { $ config = $ this -> getConfig ( ) ; $ cluster = $ this -> getCluster ( ) ; $ resolverFactory = $ config -> getResolverFactory ( ) ; $ converterFactory = $ config -> getConverterFactory ( ) ; $ cluster -> setNodes ( $ this -> nodes ) ; $ resolverFactory -> setResolvers ( $ this -> resolvers ) ; $ converterFactory -> setConverters ( $ this -> converters ) ; return new RiakClient ( $ config , $ cluster ) ; }
Create a riak client

@return \Riak\Client\RiakClient
Create a riak client