You are here

public function CompileSubscriber::__construct in Theme Compiler 2.0.x

Constructs an CompileSubscriber object.

Parameters

\Drupal\theme_compiler\Compiler $compiler: The compiler service.

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

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager: The typed config manager service.

File

src/EventSubscriber/CompileSubscriber.php, line 60

Class

CompileSubscriber
An event subscriber used to trigger (re)compilation of this module's assets.

Namespace

Drupal\theme_compiler\EventSubscriber

Code

public function __construct(Compiler $compiler, ThemeHandlerInterface $theme_handler, TypedConfigManagerInterface $typed_config_manager) {
  $this->compiler = $compiler;
  $this->themeHandler = $theme_handler;
  $this->typedConfigManager = $typed_config_manager;
}