Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 2d9be81

Browse files
committed
Update composer.json
1 parent 5ceac0d commit 2d9be81

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "~7.0",
20-
"illuminate/support": "5.5 - 6.0",
20+
"illuminate/support": "^5.5 || ^6.0 || ^7.0",
2121
"kreait/firebase-php": "*"
2222
},
2323
"suggest": {

src/Broadcasters/FSDB.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ class FSDB extends Broadcaster
2020
/**
2121
* Create a new broadcaster instance.
2222
*/
23-
public function __construct()
23+
public function __construct($config)
2424
{
25-
$this->config = config('broadcasting.connections.firebase');
26-
27-
$sr_account = ServiceAccount::fromJsonFile(base_path($this->config['creds_file']));
28-
29-
$this->db = (new Factory())
25+
$sr_account = ServiceAccount::fromJsonFile(base_path($config['creds_file']));
26+
$this->config = $config;
27+
$this->db = (new Factory())
3028
->withServiceAccount($sr_account)
3129
->createFirestore();
3230
}

0 commit comments

Comments
 (0)