You are here

public function WebformDefaultExceptionHtmlSubscriber::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/EventSubscriber/WebformDefaultExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformDefaultExceptionHtmlSubscriber::__construct()

Constructs a WebformDefaultExceptionHtmlSubscriber object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

\Symfony\Component\Routing\Matcher\UrlMatcherInterface $access_unaware_router: A router implementation which does not check access.

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.

Overrides DefaultExceptionHtmlSubscriber::__construct

File

src/EventSubscriber/WebformDefaultExceptionHtmlSubscriber.php, line 92

Class

WebformDefaultExceptionHtmlSubscriber
Event subscriber to redirect to login form when webform settings instruct to.

Namespace

Drupal\webform\EventSubscriber

Code

public function __construct(HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router, AccountInterface $account, ConfigFactoryInterface $config_factory, RendererInterface $renderer, MessengerInterface $messenger, WebformTokenManagerInterface $token_manager) {
  parent::__construct($http_kernel, $logger, $redirect_destination, $access_unaware_router);
  $this->account = $account;
  $this->configFactory = $config_factory;
  $this->renderer = $renderer;
  $this->messenger = $messenger;
  $this->tokenManager = $token_manager;
}