function JsCollectionOptimizerLazy::__construct

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

Constructs a JsCollectionOptimizerLazy.

Parameters

\Drupal\Core\Asset\AssetCollectionGrouperInterface $grouper: The grouper for JS 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/JsCollectionOptimizerLazy.php, line 45

Class

JsCollectionOptimizerLazy
Optimizes JavaScript assets.

Namespace

Drupal\Core\Asset

Code

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

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