public function UpdateKernel::handle in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::handle()
- 9 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::handle()
File
- core/lib/Drupal/Core/Update/UpdateKernel.php, line 58
Class
- UpdateKernel
- Defines a kernel which is used primarily to run the update of Drupal.
Namespace
Drupal\Core\Update
Code
public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) : Response {
try {
static::bootEnvironment();
$this
->initializeSettings($request);
ReverseProxyMiddleware::setSettingsOnRequest($request, Settings::getInstance());
$this
->boot();
$container = $this
->getContainer();
$request_stack = $container
->get('request_stack');
$request_stack
->push($request);
$this
->preHandle($request);
$this
->bootSession($request, $type);
$result = $this
->handleRaw($request);
$this
->shutdownSession($request);
return $result;
} catch (\Exception $e) {
return $this
->handleException($e, $request, $type);
}
}