function ThemeInfoRebuildSubscriber::__construct

Same name in other branches
  1. 4.x src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()

Constructs a ThemeInfoRebuildSubscriber object.

Parameters

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

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

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

\Drupal\Core\Theme\Registry $theme_registry: The theme registry.

File

src/EventSubscriber/ThemeInfoRebuildSubscriber.php, line 72

Class

ThemeInfoRebuildSubscriber
Subscriber for force the system to rebuild the theme registry.

Namespace

Drupal\devel\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config, AccountProxyInterface $account, ThemeHandlerInterface $theme_handler, MessengerInterface $messenger, TranslationInterface $string_translation, Registry $theme_registry) {
    $this->config = $config->get('devel.settings');
    $this->account = $account;
    $this->themeHandler = $theme_handler;
    $this->messenger = $messenger;
    $this->stringTranslation = $string_translation;
    $this->themeRegistry = $theme_registry;
}