public function CssOptimizer::__construct in Advanced CSS/JS Aggregation 8.2
Construct the optimizer instance.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $minify_cache: The minify cache.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
\Drupal\Core\State\StateInterface $advagg_files: The AdvAgg file status state information storage service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- advagg_css_minify/
src/ Asset/ CssOptimizer.php, line 65
Class
- CssOptimizer
- Optimizes a CSS asset.
Namespace
Drupal\advagg_css_minify\AssetCode
public function __construct(CacheBackendInterface $minify_cache, ConfigFactoryInterface $config_factory, StateInterface $advagg_files, ModuleHandlerInterface $module_handler) {
$this->cache = $minify_cache;
$this->config = $config_factory
->get('advagg_css_minify.settings');
$this->advaggConfig = $config_factory
->get('advagg.settings');
$this->advaggFiles = $advagg_files;
$this->moduleHandler = $module_handler;
}