function 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.
Parameters
int $type The type of the request: (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST)
bool $catch Whether to catch exceptions or not:
Throws
\Exception When an Exception occurs during processing
17 methods override HttpKernelInterface::handle()
- AjaxPageState::handle in core/
lib/ Drupal/ Core/ StackMiddleware/ AjaxPageState.php - Handles a Request to convert it to a Response.
- BanMiddleware::handle in core/
modules/ ban/ src/ BanMiddleware.php - Handles a Request to convert it to a Response.
- ContentLength::handle in core/
modules/ big_pipe/ src/ StackMiddleware/ ContentLength.php - Handles a Request to convert it to a Response.
- ContentLength::handle in core/
lib/ Drupal/ Core/ StackMiddleware/ ContentLength.php - Handles a Request to convert it to a Response.
- Cors::handle in vendor/
asm89/ stack-cors/ src/ Cors.php - Handles a Request to convert it to a Response.
File
-
vendor/
symfony/ http-kernel/ HttpKernelInterface.php, line 39
Class
- HttpKernelInterface
- HttpKernelInterface handles a Request to convert it to a Response.
Namespace
Symfony\Component\HttpKernelCode
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = true) : Response;