You are here

public function FirebaseServiceBase::__construct in Firebase Push Notification (FCM) 8

Same name and namespace in other branches
  1. 3.0.x src/Service/FirebaseServiceBase.php \Drupal\firebase\Service\FirebaseServiceBase::__construct()

Constructs a FirebaseServiceBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The factory for configuration objects.

\GuzzleHttp\ClientInterface $client: An HTTP client.

\Drupal\Core\Logger\LoggerChannelInterface $loggerChannel: The logger channel.

3 calls to FirebaseServiceBase::__construct()
FirebaseGroupManagerService::__construct in src/Service/FirebaseGroupManagerService.php
Constructs a FirebaseServiceBase object.
FirebaseMessageService::__construct in src/Service/FirebaseMessageService.php
Constructs a FirebaseServiceBase object.
FirebaseTopicManagerService::__construct in src/Service/FirebaseTopicManagerService.php
Constructs a FirebaseServiceBase object.
3 methods override FirebaseServiceBase::__construct()
FirebaseGroupManagerService::__construct in src/Service/FirebaseGroupManagerService.php
Constructs a FirebaseServiceBase object.
FirebaseMessageService::__construct in src/Service/FirebaseMessageService.php
Constructs a FirebaseServiceBase object.
FirebaseTopicManagerService::__construct in src/Service/FirebaseTopicManagerService.php
Constructs a FirebaseServiceBase object.

File

src/Service/FirebaseServiceBase.php, line 73

Class

FirebaseServiceBase
Provides a base class for service, working with FCM.

Namespace

Drupal\firebase\Service

Code

public function __construct(ConfigFactoryInterface $configFactory, ClientInterface $client, LoggerChannelInterface $loggerChannel) {
  $this->configFactory = $configFactory;
  $this->client = $client;
  $this->logger = $loggerChannel;
}