UpdateKernel::handleRaw

protected UpdateKernel::handleRaw(Request $request)

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

File

core/lib/Drupal/Core/Update/UpdateKernel.php, line 96

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);
}
doc_Drupal
2016-10-29 09:50:46
Comments
Leave a Comment

Please login to continue.