You are here

public function ModuleHandler::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::__construct()

Constructs a ModuleHandler object.

Parameters

string $root: The app root.

\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal 7 legacy service.

See also

\Drupal\Core\DrupalKernel

\Drupal\Core\CoreServiceProvider

File

src/Extension/ModuleHandler.php, line 48
Contains Drupal\service_container\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function __construct($root, Drupal7 $drupal7) {
  $this->root = $root;
  $this->drupal7 = $drupal7;
}