Something went wrong on our end
UwDrushCommands.php 8.35 KiB
<?php
namespace Drupal\uw_cfg_common\Commands;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\ProxyClass\Extension\ModuleInstaller;
use Drupal\uw_cfg_common\Service\UWMissingBlocks;
use Drupal\uw_cfg_common\UwPermissions\UwPermissions;
use Drupal\uw_cfg_common\UwRoles\UwRoles;
use Drush\Commands\DrushCommands;
use Drush\Utils\StringUtils;
/**
* Drush commands for uw_cfg_common module.
*
* @package Drupal\uw_cfg_common\Commands
*/
class UwDrushCommands extends DrushCommands {
/**
* Entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
/**
* Service to deal with missing blocks.
*
* @var \Drupal\uw_cfg_common\Service\UWMissingBlocks
*/
protected $missingBlocks;
/**
* Config factory from core.
*
* @var \Drupal\Core\Config\ConfigFactoryInterface
*/
protected $configFactory;
/**
* Module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
/**
* Module installer.
*
* @var \Drupal\Core\ProxyClass\Extension\ModuleInstaller
*/
protected $moduleInstaller;
/**
* {@inheritDoc}
*/
public function __construct(
EntityTypeManagerInterface $entityTypeManager,
UWMissingBlocks $missingBlocks,
ConfigFactoryInterface $configFactory,
ModuleHandlerInterface $moduleHandler,
ModuleInstaller $moduleInstaller
) {
$this->entityTypeManager = $entityTypeManager;
$this->missingBlocks = $missingBlocks;
$this->configFactory = $configFactory;
$this->moduleHandler = $moduleHandler;