Documentation

TestKernelThatThrowsException
in package
implements HttpKernelInterface

Interfaces, Classes and Traits

HttpKernelInterface
HttpKernelInterface handles a Request to convert it to a Response.

Table of Contents

handle()  : Response
Handles a Request to convert it to a Response.

Methods

handle()

Handles a Request to convert it to a Response.

public handle(Request $request[, mixed $type = self::MASTER_REQUEST ][, mixed $catch = true ]) : Response

When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.

Parameters
$request : Request

A Request instance

$type : mixed = self::MASTER_REQUEST

The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)

$catch : mixed = true

Whether to catch exceptions or not

Return values
Response

A Response instance

Search results