You are here

public function HackedCommands::__construct in Hacked! 8.2

HackedCommands constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Commands/HackedCommands.php, line 58

Class

HackedCommands
A Drush commandfile for Hacked! module.

Namespace

Drupal\hacked\Commands

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, TranslationInterface $string_translation) {
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->cacheBackend = $cache_backend;
  $this->stringTranslation = $string_translation;
}