src/GitHubFactory.php
protected function getBuilder(array $config)
    {
        $builder = new ClientBuilder();

        if ($backoff = array_get($config, 'backoff')) {
            $builder->addPlugin(new RetryPlugin(['retries' => $backoff === true ? 2 : $backoff]));
        }

        if ($this->cache && class_exists(CacheItemPool::class) && $cache = array_get($config, 'cache')) {
            $builder->addCache(new CacheItemPool($this->cache->store($cache === true ? null : $cache)));
        }

        return $builder;
    }
protected function getBuilder(array $config)
    {
        $builder = new ClientBuilder();

        if ($backoff = array_get($config, 'backoff')) {
            $builder->addPlugin(new RetryPlugin(['retries' => $backoff === true ? 2 : $backoff]));
        }

        if ($this->cache && class_exists(CacheItemPool::class) && $cache = array_get($config, 'cache')) {
            $builder->addCache(new CacheItemPool($this->cache->store($cache === true ? null : $cache)));
        }

        return $builder;
    }
protected function getBuilder ( array $ config ) { $ builder = new ClientBuilder ( ) ; if ( $ backoff = array_get ( $ config , 'backoff' ) ) { $ builder -> addPlugin ( new RetryPlugin ( [ 'retries' => $ backoff === true ? 2 : $ backoff ] ) ) ; } if ( $ this -> cache && class_exists ( CacheItemPool :: class ) && $ cache = array_get ( $ config , 'cache' ) ) { $ builder -> addCache ( new CacheItemPool ( $ this -> cache -> store ( $ cache === true ? null : $ cache ) ) ) ; } return $ builder ; }
Get the http client builder.

@param string[] $config

@return \GrahamCampbell\GitHub\Http\ClientBuilder
Get the http client builder .