Same name and namespace in other branches
  1. 5.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct() 1 commentaire
  2. 8.x-2.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct() 1 commentaire
  3. 8.x-3.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct() 1 commentaire
  4. 8.x-4.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct() 1 commentaire

Constructs the Subscriber object.

Paramètres

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\advagg_mod\Asset\TranslateCss $translator: The translator service.

\Drupal\advagg_mod\Asset\DeferCss $deferer: The CSS deferer.

\Drupal\Advagg_mod\Asset\AsyncJs $js_asyncer: The JS asyncer.

\Drupal\advagg_mod\Asset\DeferJs $js_deferer: The JS deferer.

\Drupal\Advagg_mod\Asset\RemoveConsoleLog $js_console_log: The class to remove console.log() calls.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

Fichier

advagg_mod/src/EventSubscriber/InitSubscriber.php, line 97

Classe

InitSubscriber
Perform initialization tasks for advagg_mod.

Namespace

Drupal\advagg_mod\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslateCss $translator, DeferCss $deferer, AsyncJs $js_asyncer, DeferJs $js_deferer, RemoveConsoleLog $js_console_log, FileSystemInterface $file_system) {
    $this->config = $config_factory->getEditable('advagg_mod.settings');
    $this->advaggConfig = $config_factory->getEditable('advagg.settings');
    $this->translator = $translator;
    $this->cssDeferer = $deferer;
    $this->jsAsyncer = $js_asyncer;
    $this->jsDeferer = $js_deferer;
    $this->consoleLogRemover = $js_console_log;
    $this->fileSystem = $file_system;
}