You are here

public function Slack::__construct in Slack 8

Constructs a Slack object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config: Module configuration.

\GuzzleHttp\ClientInterface $http_client: HTTP Client.

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

\Drupal\Core\Messenger\MessengerInterface $messenger: Messenger service.

File

src/Slack.php, line 60

Class

Slack
Send messages to Slack.

Namespace

Drupal\slack

Code

public function __construct(ConfigFactoryInterface $config, ClientInterface $http_client, LoggerChannelFactoryInterface $logger, MessengerInterface $messenger) {
  $this->config = $config;
  $this->httpClient = $http_client;
  $this->logger = $logger;
  $this->messenger = $messenger;
}