TestSubRequestHandlerKernel
in package
implements
HttpKernelInterface
Interfaces, Classes and Traits
- HttpKernelInterface
- HttpKernelInterface handles a Request to convert it to a Response.
Table of Contents
- $assertCallback : mixed
- __construct() : mixed
- handle() : Response
- Handles a Request to convert it to a Response.
Properties
$assertCallback
private
mixed
$assertCallback
Methods
__construct()
public
__construct(Closure $assertCallback) : mixed
Parameters
- $assertCallback : Closure
Return values
mixed —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