public function KeyCommands::__construct in Key 8
Constructs a new KeyCommands drush command.
File
- src/
Commands/ KeyCommands.php, line 59
Class
- KeyCommands
- Class KeyCommands.
Namespace
Drupal\key\CommandsCode
public function __construct(KeyRepositoryInterface $repository, LoggerChannelFactoryInterface $logger, KeyPluginManager $key_plugin_manager, EntityTypeManagerInterface $entity_type_manager, KeyPluginManager $provider_manager) {
$this->repository = $repository;
$this->logger = $logger
->get('key');
$this->keyTypePluginManager = $key_plugin_manager;
$this->entityTypeManager = $entity_type_manager;
$this->keyProviderPluginManager = $provider_manager;
}