You are here

public function JsCollectionOptimizer::__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.

Overrides JsCollectionOptimizer::__construct

File

src/Asset/JsCollectionOptimizer.php, line 65

Class

JsCollectionOptimizer

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) {
  $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->settingsHash = '_' . advagg_get_current_hooks_hash();
}