You are here

public function ThemeInfoRebuildSubscriber::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()
  2. 8.2 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()
  3. 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.

File

src/EventSubscriber/ThemeInfoRebuildSubscriber.php, line 60

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) {
  $this->config = $config
    ->get('devel.settings');
  $this->account = $account;
  $this->themeHandler = $theme_handler;
}