You are here

public function JsOptimizer::__construct in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.4 src/Asset/JsOptimizer.php \Drupal\advagg\Asset\JsOptimizer::__construct()

Constructs the Optimizer object.

Parameters

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

\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $event_dispatcher: The event dispatcher.

\Drupal\Core\Cache\CacheBackendInterface $cache: The AdvAgg cache.

Overrides AssetOptimizer::__construct

File

src/Asset/JsOptimizer.php, line 17

Class

JsOptimizer
The JavaScript Optimizer.

Namespace

Drupal\advagg\Asset

Code

public function __construct(ConfigFactoryInterface $config_factory, ContainerAwareEventDispatcher $event_dispatcher, CacheBackendInterface $cache) {
  $this->extension = 'js';
  parent::__construct($config_factory, $event_dispatcher, $cache);
}