public function Webhook::__construct in Fastly 8.3
Webhook constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.
\GuzzleHttp\ClientInterface $httpClient: The HTTP client.
\Psr\Log\LoggerInterface $logger: The Fastly logger channel.
string $webhookConnectTimeout: The timeout for webhook connections.
File
- src/
Services/ Webhook.php, line 56
Class
- Webhook
- Class Webhook.
Namespace
Drupal\fastly\ServicesCode
public function __construct(ConfigFactoryInterface $configFactory, ClientInterface $httpClient, LoggerInterface $logger, $webhookConnectTimeout) {
$this->config = $configFactory
->get('fastly.settings');
$this->httpClient = $httpClient;
$this->logger = $logger;
$this->webhookConnectTimeout = $webhookConnectTimeout;
}