You are here

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

Same name and namespace in other branches
  1. 3.0.x src/Service/FirebaseGroupManagerService.php \Drupal\firebase\Service\FirebaseGroupManagerService::__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.

Overrides FirebaseServiceBase::__construct

File

src/Service/FirebaseGroupManagerService.php, line 27

Class

FirebaseGroupManagerService
Service for managing device groups.

Namespace

Drupal\firebase\Service

Code

public function __construct(ConfigFactory $configFactory, Client $client, LoggerChannelInterface $loggerChannel) {
  parent::__construct($configFactory, $client, $loggerChannel);
  $config = $this->configFactory
    ->get('firebase.settings');
  $this->key = $config
    ->get('server_key');
  $this->endpoint = self::ENDPOINT;
}