You are here

public function Profiler::loadProfileFromResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/Profiler.php \Symfony\Component\HttpKernel\Profiler\Profiler::loadProfileFromResponse()

Loads the Profile for the given Response.

Parameters

Response $response A Response instance:

Return value

Profile A Profile instance

File

vendor/symfony/http-kernel/Profiler/Profiler.php, line 82

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function loadProfileFromResponse(Response $response) {
  if (!($token = $response->headers
    ->get('X-Debug-Token'))) {
    return false;
  }
  return $this
    ->loadProfile($token);
}