Skip to content

Commit 7884bd0

Browse files
redjanymredjanym
authored andcommitted
Remove the GuzzleHttp manual injection. Update composer.json file
1 parent 3ae5fd8 commit 7884bd0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sngrl/php-firebase-cloud-messaging",
2+
"name": "redjanym/php-firebase-cloud-messaging",
33
"description": "PHP API for Firebase Cloud Messaging from Google",
44
"license": "MIT",
55
"keywords": ["PHP","FCM","Google","Firebase","Cloud","Notifications","Android","iOS","Chrome"],
@@ -8,6 +8,10 @@
88
{
99
"name": "Sngrl",
1010
"email": "[email protected]"
11+
},
12+
{
13+
"name": "Redjan Ymeraj",
14+
"email": "[email protected]"
1115
}
1216
],
1317
"require": {

src/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ class Client implements ClientInterface
1616
private $proxyApiUrl;
1717
private $guzzleClient;
1818

19-
public function injectGuzzleHttpClient(GuzzleHttp\ClientInterface $client)
19+
public function __construct()
2020
{
21-
$this->guzzleClient = $client;
21+
22+
$this->guzzleClient = new \GuzzleHttp\Client();
2223
}
2324

2425
/**

0 commit comments

Comments
 (0)