Same name in other branches
- 5.0.x src/Asset/CssOptimizer.php \Drupal\advagg\Asset\CssOptimizer::__construct()
- 6.0.x src/Asset/CssOptimizer.php \Drupal\advagg\Asset\CssOptimizer::__construct()
- 8.x-3.x src/Asset/CssOptimizer.php \Drupal\advagg\Asset\CssOptimizer::__construct()
- 8.x-4.x src/Asset/CssOptimizer.php \Drupal\advagg\Asset\CssOptimizer::__construct()
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;
}