You are here

public function AcquiaContentHubWebhookInterestCommands::__construct in Acquia Content Hub 8.2

AcquiaContentHubWebhookInterestCommands constructor.

Parameters

\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The client factory.

\Drupal\acquia_contenthub\ContentHubConnectionManager $connection_manager: The Content Hub Connection Manager.

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

File

src/Commands/AcquiaContentHubWebhookInterestCommands.php, line 77

Class

AcquiaContentHubWebhookInterestCommands
Tests commands that interact with webhook interests.

Namespace

Drupal\acquia_contenthub\Commands

Code

public function __construct(ClientFactory $client_factory, ContentHubConnectionManager $connection_manager, ConfigFactoryInterface $config_factory) {
  $this->clientFactory = $client_factory;
  $this->connectionManager = $connection_manager;
  $this->config = $config_factory
    ->getEditable('acquia_contenthub.admin_settings');
}