protected function UpdateKernel::handleRaw in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::handleRaw()
- 10 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::handleRaw()
Generates the actual result of update.php.
The actual logic of the update is done in the db update controller.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request.
Return value
\Symfony\Component\HttpFoundation\Response A response object.
See also
\Drupal\system\Controller\DbUpdateController
1 call to UpdateKernel::handleRaw()
- 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 99
Class
- UpdateKernel
- Defines a kernel which is used primarily to run the update of Drupal.
Namespace
Drupal\Core\UpdateCode
protected function handleRaw(Request $request) {
$container = $this
->getContainer();
$this
->handleAccess($request, $container);
/** @var \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver */
$controller_resolver = $container
->get('controller_resolver');
/** @var callable $db_update_controller */
$db_update_controller = $controller_resolver
->getControllerFromDefinition('\\Drupal\\system\\Controller\\DbUpdateController::handle');
$this
->setupRequestMatch($request);
/** @var \Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver */
$argument_resolver = $container
->get('http_kernel.controller.argument_resolver');
$arguments = $argument_resolver
->getArguments($request, $db_update_controller);
return call_user_func_array($db_update_controller, $arguments);
}