Skip to content

Commit

Permalink
~ Update service provider to match signature of berkayk package (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
modernben authored Jan 31, 2025
1 parent 9f85640 commit 09c3a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Add your OneSignal App ID and REST API Key to your `config/services.php`:
...
'onesignal' => [
'app_id' => env('ONESIGNAL_APP_ID'),
'rest_api_url' => env('ONESIGNAL_REST_API_URL', 'https://api.onesignal.com'),
'rest_api_key' => env('ONESIGNAL_REST_API_KEY'),
'guzzle_client_timeout' => env('ONESIGNAL_GUZZLE_CLIENT_TIMEOUT', 0),
],
Expand Down
1 change: 1 addition & 0 deletions src/OneSignalServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function boot()

return new OneSignalClient(
$oneSignalConfig['app_id'],
$oneSignalConfig['rest_api_url'] ?? 'https://api.onesignal.com',
$oneSignalConfig['rest_api_key'],
''
);
Expand Down

0 comments on commit 09c3a3e

Please sign in to comment.