You are here

public function SystemManager::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::__construct()
  2. 9 core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::__construct()

Constructs a SystemManager object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

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

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree manager.

\Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail: The active menu trail service.

File

core/modules/system/src/SystemManager.php, line 79

Class

SystemManager
System Manager Service.

Namespace

Drupal\system

Code

public function __construct(ModuleHandlerInterface $module_handler, RequestStack $request_stack, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) {
  $this->moduleHandler = $module_handler;
  $this->requestStack = $request_stack;
  $this->menuTree = $menu_tree;
  $this->menuActiveTrail = $menu_active_trail;
}