Same name in other branches
  1. 5.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct()
  2. 6.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct()
  3. 8.x-4.x 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;
}