You are here

public function XHProfEventSubscriber::__construct in XHProf 8

Constructs XHProfEventSubscriber object.

Parameters

\Drupal\xhprof\ProfilerInterface $profiler: The profiler.

\Drupal\Core\Session\AccountInterface $currentUser: The current user.

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

File

src/EventSubscriber/XHProfEventSubscriber.php, line 57

Class

XHProfEventSubscriber
Provides handling of start/stop for profiler.

Namespace

Drupal\xhprof\EventSubscriber

Code

public function __construct(ProfilerInterface $profiler, AccountInterface $currentUser, ModuleHandlerInterface $module_handler) {
  $this->profiler = $profiler;
  $this->currentUser = $currentUser;
  $this->moduleHandler = $module_handler;
}