Construct the AssetDumper instance.

Paramètres

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

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

Fichier

src/Asset/AssetDumper.php, line 58

Classe

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;
}