Same name and namespace in other branches
  1. 5.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct() 1 commentaire
  2. 8.x-3.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct() 1 commentaire
  3. 8.x-4.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::__construct() 1 commentaire

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\Commands

Code

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