You are here

public function SnippetAccess::__construct in Hotjar 8

Same name and namespace in other branches
  1. 8.2 src/SnippetAccess.php \Drupal\hotjar\SnippetAccess::__construct()

SnippetAccess constructor.

Parameters

\Drupal\hotjar\HotjarSettingsInterface $hotjar_settings: Hotjar settings.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Path\CurrentPathStack $current_path: Current path.

\Drupal\Core\Path\AliasManagerInterface $alias_manager: Alias manager.

\Drupal\Core\Path\PathMatcherInterface $path_matcher: Path matcher.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: Request stack.

File

src/SnippetAccess.php, line 110

Class

SnippetAccess
Class SnippetAccess.

Namespace

Drupal\hotjar

Code

public function __construct(HotjarSettingsInterface $hotjar_settings, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, CurrentPathStack $current_path, AliasManagerInterface $alias_manager, PathMatcherInterface $path_matcher, AccountInterface $current_user, RequestStack $request_stack) {
  $this->settings = $hotjar_settings;
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;
  $this->currentPath = $current_path;
  $this->aliasManager = $alias_manager;
  $this->pathMatcher = $path_matcher;
  $this->currentUser = $current_user;
  $this->requestStack = $request_stack;
}