function RequestCloseSubscriber::__construct

Constructs a new RequestCloseSubscriber instance.

Parameters

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

File

core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php, line 26

Class

RequestCloseSubscriber
Subscriber for all responses.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}

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