public function JsCollectionOptimizer::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php \Drupal\Core\Asset\JsCollectionOptimizer::__construct()
Constructs a JsCollectionOptimizer.
Parameters
\Drupal\Core\Asset\AssetCollectionGrouperInterface: The grouper for JS assets.
\Drupal\Core\Asset\AssetOptimizerInterface: The optimizer for a single JS asset.
\Drupal\Core\Asset\AssetDumperInterface: The dumper for optimized JS assets.
\Drupal\Core\State\StateInterface: The state key/value store.
File
- core/
lib/ Drupal/ Core/ Asset/ JsCollectionOptimizer.php, line 58 - Contains \Drupal\Core\Asset\JsCollectionOptimizer.
Class
- JsCollectionOptimizer
- Optimizes JavaScript assets.
Namespace
Drupal\Core\AssetCode
public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state) {
$this->grouper = $grouper;
$this->optimizer = $optimizer;
$this->dumper = $dumper;
$this->state = $state;
}