You are here

public function UpdateRootFactory::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/update/src/UpdateRootFactory.php \Drupal\update\UpdateRootFactory::__construct()

Constructs an UpdateRootFactory instance.

Parameters

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

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

File

core/modules/update/src/UpdateRootFactory.php, line 40
Contains \Drupal\update\UpdateRootFactory.

Class

UpdateRootFactory
Gets the root path used by the Update Manager to install or update projects.

Namespace

Drupal\update

Code

public function __construct(DrupalKernelInterface $drupal_kernel, RequestStack $request_stack) {
  $this->drupalKernel = $drupal_kernel;
  $this->requestStack = $request_stack;
}