src/Requester.php
protected function addRetrySubscriber(GuzzleClient $guzzle)
    {
        // Build retry subscriber
        $retry = new RetrySubscriber([
            'filter' => RetrySubscriber::createStatusFilter($this->retryOn),
            'delay'  => function ($number, $event) {
                return $this->retryDelay;
            },
            'max' => $this->retry,
        ]);

        // add the retry emitter
        $guzzle->getEmitter()->attach($retry);

        return $guzzle;
    }
protected function addRetrySubscriber(GuzzleClient $guzzle)
    {
        // Build retry subscriber
        $retry = new RetrySubscriber([
            'filter' => RetrySubscriber::createStatusFilter($this->retryOn),
            'delay'  => function ($number, $event) {
                return $this->retryDelay;
            },
            'max' => $this->retry,
        ]);

        // add the retry emitter
        $guzzle->getEmitter()->attach($retry);

        return $guzzle;
    }
protected function addRetrySubscriber ( GuzzleClient $ guzzle ) { // Build retry subscriber $ retry = new RetrySubscriber ( [ 'filter' => RetrySubscriber :: createStatusFilter ( $ this -> retryOn ) , 'delay' => function ( $ number , $ event ) { return $ this -> retryDelay ; } , 'max' => $ this -> retry , ] ) ; // add the retry emitter $ guzzle -> getEmitter ( ) -> attach ( $ retry ) ; return $ guzzle ; }
Add the retry subscriber to the guzzle client.

@param \GuzzleHttp\Client $guzzle

@return \GuzzleHttp\Client
Add the retry subscriber to the guzzle client .