Skip to content

Commit a38d93f

Browse files
authored
Merge pull request #163 from Edujugon/release-5.2.0
Release 5.2.0
2 parents b9edadb + 821ff2f commit a38d93f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/Config/config.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88
'priority' => 'normal',
99
'dry_run' => false,
1010
'apiKey' => 'My_ApiKey',
11+
// Optional: Default Guzzle request options for each GCM request
12+
// See https://docs.guzzlephp.org/en/stable/request-options.html
13+
'guzzle' => [],
1114
],
1215
'fcm' => [
1316
'priority' => 'normal',
1417
'dry_run' => false,
1518
'apiKey' => 'My_ApiKey',
19+
// Optional: Default Guzzle request options for each FCM request
20+
// See https://docs.guzzlephp.org/en/stable/request-options.html
21+
'guzzle' => [],
1622
],
1723
'apn' => [
1824
'certificate' => __DIR__ . '/iosCertificates/apns-dev-cert.pem',

src/Fcm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct()
1616

1717
$this->config = $this->initializeConfig('fcm');
1818

19-
$this->client = new Client();
19+
$this->client = new Client($this->config['guzzle'] ?? []);
2020
}
2121

2222
/**

src/Gcm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct()
3131
$this->url = 'https://fcm.googleapis.com/fcm/send';
3232

3333
$this->config = $this->initializeConfig('fcm');
34-
$this->client = new Client;
34+
$this->client = new Client($this->config['guzzle'] ?? []);
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)