src/SecucardConnect/Util/GuzzleLogger.php
protected function onSuccess(RequestInterface $request)
    {
        return function ($response) use ($request) {
            $this->log($request, $response);
            return $response;
        };
    }
protected function onSuccess(RequestInterface $request)
    {
        return function ($response) use ($request) {
            $this->log($request, $response);
            return $response;
        };
    }
protected function onSuccess ( RequestInterface $ request ) { return function ( $ response ) use ( $ request ) { $ this -> log ( $ request , $ response ) ; return $ response ; } ; }
Returns a function which is handled when a request was successful.

@param RequestInterface $request

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