File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 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 ' ,
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments