src/SecucardConnect/Util/GuzzleLogger.php
protected function onFailure(RequestInterface $request)
    {
        return function ($reason) use ($request) {

            // Only log a rejected requests if it hasn't already been logged
            $this->log($request, null, $reason);

            return Promise\rejection_for($reason);
        };
    }
protected function onFailure(RequestInterface $request)
    {
        return function ($reason) use ($request) {

            // Only log a rejected requests if it hasn't already been logged
            $this->log($request, null, $reason);

            return Promise\rejection_for($reason);
        };
    }
protected function onFailure ( RequestInterface $ request ) { return function ( $ reason ) use ( $ request ) { // Only log a rejected requests if it hasn't already been logged $ this -> log ( $ request , null , $ reason ) ; return Promise \ rejection_for ( $ reason ) ; } ; }
Returns a function which is handled when a request was rejected.

@param RequestInterface $request

@return Closure
Returns a function which is handled when a request was rejected .