You are here

public function PushNotificationsBroadcasterApns::__construct in Push Notifications 8

Constructor.

File

src/PushNotificationsBroadcasterApns.php, line 83
Contains \Drupal\push_notifications\PushNotificationsBroadcasterApns.

Class

PushNotificationsBroadcasterApns
Broadcasts Android messages.

Namespace

Drupal\push_notifications

Code

public function __construct() {

  // Load configuration.
  $this->config = \Drupal::config('push_notifications.apns');

  // Determine certificate path.
  $this
    ->determineCertificatePath();

  // Determine correct gateway.
  $this
    ->determineGateway();
}