function UpdateRoot::__construct

Constructs an UpdateRoot instance.

Parameters

\Drupal\Core\DrupalKernelInterface $drupal_kernel: The Drupal kernel.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

core/modules/update/src/UpdateRoot.php, line 47

Class

UpdateRoot
Gets the root path used by the legacy Update Manager.

Namespace

Drupal\update

Code

public function __construct(DrupalKernelInterface $drupal_kernel, RequestStack $request_stack) {
  @trigger_error(__CLASS__ . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3522119', E_USER_DEPRECATED);
  $this->drupalKernel = $drupal_kernel;
  $this->requestStack = $request_stack;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.