You are here

public function AcquiaContentHubSubscriberCommands::__construct in Acquia Content Hub 8.2

Public Constructor.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Config Factory.

\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The Client Factory.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The Logger Service.

\Drupal\Core\State\StateInterface $state: The State Service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler Service.

File

modules/acquia_contenthub_subscriber/src/Commands/AcquiaContentHubSubscriberCommands.php, line 75

Class

AcquiaContentHubSubscriberCommands
Drush commands for Acquia Content Hub subscribers.

Namespace

Drupal\acquia_contenthub_subscriber\Commands

Code

public function __construct(Connection $database, ConfigFactoryInterface $config_factory, ClientFactory $client_factory, LoggerChannelFactoryInterface $logger, StateInterface $state, ModuleHandlerInterface $module_handler) {
  $this->database = $database;
  $this->config = $config_factory
    ->get('acquia_contenthub.admin_settings');
  $this->clientFactory = $client_factory;
  $this->logger = $logger
    ->get('acquia_contenthub_publisher');
  $this->state = $state;
  $this->moduleHandler = $module_handler;
}