Same name in other branches
- 5.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct()
- 6.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct()
- 8.x-3.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct()
Constructs the commands instance.
Paramètres
\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\FileSystemInterface $file_system: Provides helpers to operate on files and stream wrappers.
Fichier
-
src/
Commands/ AdvaggCommands.php, line 47
Classe
- AdvaggCommands
- Advagg commands for Drush 9+.
Namespace
Drupal\advagg\CommandsCode
public function __construct(CacheBackendInterface $cache, ConfigFactoryInterface $config_factory, FileSystemInterface $file_system) {
$this->cache = $cache;
$this->advaggConfig = $config_factory->getEditable('advagg.settings');
$this->fileSystem = $file_system;
}