Symfony\Component\HttpKernel\HttpKernelInterface::handle
Handles a Request to convert it to a Response.
When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.
Signature
public function handle(Request
$request,
[integer
$type = self::MASTER_REQUEST,
[Boolean
$catch = true]] )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- A Request instance
$type
— integer- The type of the request
(one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) $catch
— object- Whether to catch exceptions or not
Returns
- Response
- A Response instance
Errors/Exceptions
-
Exception
- When an Exception occurs during processing