function 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 $themeHandler: The theme handler.

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

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

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

File

src/EventSubscriber/ThemeInfoRebuildSubscriber.php, line 52

Class

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

Namespace

Drupal\devel\EventSubscriber

Code

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