function CssCollectionOptimizerLazy::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php \Drupal\Core\Asset\CssCollectionOptimizerLazy::__construct()

Constructs a CssCollectionOptimizerLazy.

Parameters

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

\Drupal\Core\Asset\AssetOptimizerInterface $optimizer: The asset optimizer.

\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The theme manager.

\Drupal\Core\Asset\LibraryDependencyResolverInterface $dependencyResolver: The library dependency resolver.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

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

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\Core\File\FileUrlGeneratorInterface $fileUrlGenerator: The file URL generator.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

File

core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php, line 45

Class

CssCollectionOptimizerLazy
Optimizes CSS assets.

Namespace

Drupal\Core\Asset

Code

public function __construct(protected readonly AssetCollectionGrouperInterface $grouper, protected readonly AssetOptimizerInterface $optimizer, protected readonly ThemeManagerInterface $themeManager, protected readonly LibraryDependencyResolverInterface $dependencyResolver, protected readonly RequestStack $requestStack, protected readonly FileSystemInterface $fileSystem, protected readonly ConfigFactoryInterface $configFactory, protected readonly FileUrlGeneratorInterface $fileUrlGenerator, protected readonly TimeInterface $time, protected readonly LanguageManagerInterface $languageManager) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.