You are here

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

Construct the AssetDumper instance.

Parameters

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

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

File

src/Asset/AssetDumper.php, line 58

Class

AssetDumper
Dumps a CSS or JavaScript asset.

Namespace

Drupal\advagg\Asset

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
  $this->config = $config_factory
    ->get('system.performance');
  $this->hash = '_' . advagg_get_current_hooks_hash() . '.';
  $this->moduleHandler = $module_handler;
}