You are here

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

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

Constructs the commands instance.

Parameters

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

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

\Drupal\Core\File\FileSystem $file_system: Provides helpers to operate on files and stream wrappers.

File

src/Commands/AdvaggCommands.php, line 47

Class

AdvaggCommands
Advagg commands for Drush 9+.

Namespace

Drupal\advagg\Commands

Code

public function __construct(CacheBackendInterface $cache, ConfigFactoryInterface $config_factory, FileSystem $file_system) {
  $this->cache = $cache;
  $this->advaggConfig = $config_factory
    ->getEditable('advagg.settings');
  $this->fileSystem = $file_system;
}