You are here

protected function Client::getHandleScript in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client::getHandleScript()
1 call to Client::getHandleScript()
Client::getScript in vendor/symfony/http-kernel/Client.php
Returns the script to execute when the request must be insulated.

File

vendor/symfony/http-kernel/Client.php, line 123

Class

Client
Client simulates a browser and makes requests to a Kernel object.

Namespace

Symfony\Component\HttpKernel

Code

protected function getHandleScript() {
  return <<<'EOF'
$response = $kernel->handle($request);

if ($kernel instanceof Symfony\Component\HttpKernel\TerminableInterface) {
    $kernel->terminate($request, $response);
}

echo serialize($response);
EOF;
}