You are here

public function ContentHubWebhookController::__construct in Acquia Content Hub 8.2

Same name and namespace in other branches
  1. 8 src/Controller/ContentHubWebhookController.php \Drupal\acquia_contenthub\Controller\ContentHubWebhookController::__construct()

WebhooksSettingsForm constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

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

File

src/Controller/ContentHubWebhookController.php, line 43

Class

ContentHubWebhookController
Controller for ContentHub webhooks.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function __construct(EventDispatcherInterface $dispatcher, ClientFactory $client_factory) {
  $this->dispatcher = $dispatcher;
  $this->clientFactory = $client_factory;
}