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

Commit d4f3d42

Browse files
authored
Update RTDB.php
1 parent 67a0560 commit d4f3d42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Broadcasters/RTDB.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class RTDB extends Broadcaster
1414
use Common;
1515

1616
protected $db;
17+
1718
protected $config;
1819

1920
/**
@@ -24,10 +25,9 @@ class RTDB extends Broadcaster
2425
public function __construct($config)
2526
{
2627
$this->config = $config;
27-
$factory = (new \Kreait\Firebase\Factory())
28-
->withServiceAccount(base_path($config['creds_file']))
29-
->withDatabaseUri($config['databaseURL']);
30-
28+
$factory = (new Factory())
29+
->withServiceAccount(base_path($config['creds_file']))
30+
->withDatabaseUri($config['databaseURL']);
3131

3232
$this->db = $factory->createDatabase();
3333
}

0 commit comments

Comments
 (0)