public function CssMinifier::__construct in Advanced CSS/JS Aggregation 8.3
Same name and namespace in other branches
- 8.4 advagg_css_minify/src/Asset/CssMinifier.php \Drupal\advagg_css_minify\Asset\CssMinifier::__construct()
Construct the optimizer instance.
Parameters
\Psr\Log\LoggerInterface $logger: The logger service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
Overrides SingleAssetOptimizerBase::__construct
File
- advagg_css_minify/
src/ Asset/ CssMinifier.php, line 23
Class
- CssMinifier
- Optimizes a JavaScript asset.
Namespace
Drupal\advagg_css_minify\AssetCode
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
parent::__construct($logger);
$this->config = $config_factory
->get('advagg_css_minify.settings');
}