You are here

public function CssCollectionOptimizer::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php \Drupal\Core\Asset\CssCollectionOptimizer::__construct()
  2. 9 core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php \Drupal\Core\Asset\CssCollectionOptimizer::__construct()

Constructs a CssCollectionOptimizer.

Parameters

\Drupal\Core\Asset\AssetCollectionGrouperInterface $grouper: The grouper for CSS assets.

\Drupal\Core\Asset\AssetOptimizerInterface $optimizer: The optimizer for a single CSS asset.

\Drupal\Core\Asset\AssetDumperInterface $dumper: The dumper for optimized CSS assets.

\Drupal\Core\State\StateInterface $state: The state key/value store.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

File

core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php, line 62

Class

CssCollectionOptimizer
Optimizes CSS assets.

Namespace

Drupal\Core\Asset

Code

public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state, FileSystemInterface $file_system) {
  $this->grouper = $grouper;
  $this->optimizer = $optimizer;
  $this->dumper = $dumper;
  $this->state = $state;
  $this->fileSystem = $file_system;
}