Blackfire\Player\Guzzle\StepMiddleware::processResponse PHP Метод

processResponse() публичный Метод

public processResponse ( Psr\Http\Message\RequestInterface $request, array $options, Psr\Http\Message\ResponseInterface $response, Step $step, ValueBag $values ) : Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface
$request Psr\Http\Message\RequestInterface
$options array
$response Psr\Http\Message\ResponseInterface
$step Blackfire\Player\Step
$values Blackfire\Player\ValueBag
Результат Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface
    public function processResponse(RequestInterface $request, array $options, ResponseInterface $response, Step $step, ValueBag $values)
    {
        $crawler = $this->createCrawler($request->getUri(), $response);
        foreach ($this->extensions as $extension) {
            $extension->processResponse($request, $response, $step, $values, $crawler);
        }
        if (!($step = $step->getNext())) {
            return $response;
        }
        $options['step'] = $step;
        $nextRequest = $this->requestFactory->create($step, $values, $request, $response, $crawler);
        return $this($nextRequest, $options);
    }