Same name in other branches
  1. 5.0.x advagg_js_minify/src/Asset/JsMinifier.php \Drupal\advagg_js_minify\Asset\JsMinifier::__construct()
  2. 8.x-3.x advagg_js_minify/src/Asset/JsMinifier.php \Drupal\advagg_js_minify\Asset\JsMinifier::__construct()
  3. 8.x-4.x advagg_js_minify/src/Asset/JsMinifier.php \Drupal\advagg_js_minify\Asset\JsMinifier::__construct()

Construct the optimizer instance.

Parameters

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator: The file URL generator.

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

ExtensionList $module_extension_list: The module extension list service.

Overrides SingleAssetOptimizerBase::__construct

File

advagg_js_minify/src/Asset/JsMinifier.php, line 39

Class

JsMinifier
Optimizes a JavaScript asset.

Namespace

Drupal\advagg_js_minify\Asset

Code

public function __construct(LoggerInterface $logger, FileUrlGeneratorInterface $file_url_generator, ConfigFactoryInterface $config_factory, ExtensionList $module_extension_list) {
    parent::__construct($logger, $file_url_generator);
    $this->config = $config_factory->get('advagg_js_minify.settings');
    $this->moduleExtensionList = $module_extension_list;
}