public function ContentHubWebhookController::__construct in Acquia Content Hub 8
Same name and namespace in other branches
- 8.2 src/Controller/ContentHubWebhookController.php \Drupal\acquia_contenthub\Controller\ContentHubWebhookController::__construct()
WebhooksSettingsForm constructor.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Symfony\Component\HttpFoundation\Request $current_request: The current request.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Drupal Module Handler.
\Drupal\acquia_contenthub\ContentHubSubscription $contenthub_subscription: The Content Hub Subscription.
\Drupal\acquia_contenthub\Controller\ContentHubReindex $contentHubReindex: The Content Hub Reindex service.
File
- src/
Controller/ ContentHubWebhookController.php, line 98
Class
- ContentHubWebhookController
- Controller for Content Hub Imported Entities.
Namespace
Drupal\acquia_contenthub\ControllerCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, Request $current_request, ConfigFactoryInterface $config_factory, ClientManagerInterface $client_manager, ModuleHandlerInterface $module_handler, ContentHubSubscription $contenthub_subscription, ContentHubReindex $contentHubReindex) {
$this->loggerFactory = $logger_factory;
$this->request = $current_request;
$this->configFactory = $config_factory;
$this->clientManager = $client_manager;
$this->moduleHandler = $module_handler;
$this->contentHubSubscription = $contenthub_subscription;
$this->contentHubReindex = $contentHubReindex;
// Get the content hub config settings.
$this->config = $this->configFactory
->get('acquia_contenthub.admin_settings');
}