You are here

public function MaintenanceModeSubscriber::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber::__construct()
  2. 8.0 core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\user\EventSubscriber\MaintenanceModeSubscriber::__construct()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber::__construct()

Constructs a new MaintenanceModeSubscriber.

Parameters

\Drupal\Core\Site\MaintenanceModeInterface $maintenance_mode: The maintenance mode.

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

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.

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

\Drupal\Core\Render\BareHtmlPageRendererInterface $bare_html_page_renderer: The bare HTML page renderer.

File

core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 82
Contains \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber.

Class

MaintenanceModeSubscriber
Maintenance mode subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(MaintenanceModeInterface $maintenance_mode, ConfigFactoryInterface $config_factory, TranslationInterface $translation, UrlGeneratorInterface $url_generator, AccountInterface $account, BareHtmlPageRendererInterface $bare_html_page_renderer) {
  $this->maintenanceMode = $maintenance_mode;
  $this->config = $config_factory;
  $this->stringTranslation = $translation;
  $this->urlGenerator = $url_generator;
  $this->account = $account;
  $this->bareHtmlPageRenderer = $bare_html_page_renderer;
}