You are here

protected function UpdateKernel::handleRaw in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 101
Contains \Drupal\Core\Update\UpdateKernel.

Class

UpdateKernel
Defines a kernel which is used primarily to run the update of Drupal.

Namespace

Drupal\Core\Update

Code

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);
  $arguments = $controller_resolver
    ->getArguments($request, $db_update_controller);
  return call_user_func_array($db_update_controller, $arguments);
}