protected function UpdateKernel::shutdownSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::shutdownSession()
Ensures that the session is saved.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request.
1 call to UpdateKernel::shutdownSession()
- UpdateKernel::handle in core/
lib/ Drupal/ Core/ Update/ UpdateKernel.php - Handles a Request to convert it to a Response.
File
- core/
lib/ Drupal/ Core/ Update/ UpdateKernel.php, line 141 - Contains \Drupal\Core\Update\UpdateKernel.
Class
- UpdateKernel
- Defines a kernel which is used primarily to run the update of Drupal.
Namespace
Drupal\Core\UpdateCode
protected function shutdownSession(Request $request) {
if ($request
->hasSession()) {
$request
->getSession()
->save();
}
}