Same name in other branches
- 5.0.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::__construct()
- 6.0.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::__construct()
- 8.x-4.x src/Asset/SingleAssetOptimizerBase.php \Drupal\advagg\Asset\SingleAssetOptimizerBase::__construct()
Construct the optimizer.
Parameters
\Psr\Log\LoggerInterface $logger: A PSR compatible logger.
4 methods override SingleAssetOptimizerBase::__construct()
- CssMinifier::__construct in advagg_css_minify/
src/ Asset/ CssMinifier.php - Construct the optimizer instance.
- JsMinifier::__construct in advagg_js_minify/
src/ Asset/ JsMinifier.php - Construct the optimizer instance.
- Minifier::__construct in advagg_ext_minify/
src/ Asset/ Minifier.php - Construct the optimizer instance.
- TranslateCss::__construct in advagg_mod/
src/ Asset/ TranslateCss.php - Construct the optimizer instance.
File
-
src/
Asset/ SingleAssetOptimizerBase.php, line 32
Class
- SingleAssetOptimizerBase
- A base class for optimizing (especially minifying) assets.
Namespace
Drupal\advagg\AssetCode
public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}