You are here

public function CssCollectionOptimizer::__construct in Advanced CSS/JS Aggregation 8.2

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\State\StateInterface $advagg_aggregates: A state information store for the AdvAgg generated aggregates.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\State\StateInterface $advagg_files: The AdvAgg file status state information storage service.

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

Overrides CssCollectionOptimizer::__construct

File

src/Asset/CssCollectionOptimizer.php, line 84

Class

CssCollectionOptimizer

Namespace

Drupal\advagg\Asset

Code

public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state, ConfigFactoryInterface $config_factory, StateInterface $advagg_aggregates, ModuleHandlerInterface $module_handler, StateInterface $advagg_files, RequestStack $request_stack) {
  $this->grouper = $grouper;
  $this->optimizer = $optimizer;
  $this->dumper = $dumper;
  $this->state = $state;
  $this->config = $config_factory
    ->get('advagg.settings');
  $this->systemConfig = $config_factory
    ->get('system.performance');
  $this->advaggAggregates = $advagg_aggregates;
  $this->moduleHandler = $module_handler;
  $this->advaggFiles = $advagg_files;
  $this->settingsHash = '_' . advagg_get_current_hooks_hash();
  $this->requestStack = $request_stack;
}