Skip to content

Commit 323203a

Browse files
committed
Pass service account file directly to the factory
1 parent ce396f7 commit 323203a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ private function registerComponents()
3333
$config = $app->make('config')['firebase'];
3434

3535
if ($credentialsFile = $config['credentials']['file'] ?? null) {
36-
$serviceAccount = Firebase\ServiceAccount::fromJsonFile((string) $credentialsFile);
37-
$factory = $factory->withServiceAccount($serviceAccount);
36+
$factory = $factory->withServiceAccount((string) $credentialsFile);
3837
}
3938

4039
$enableAutoDiscovery = $config['credentials']['auto_discovery'] ?? true;

0 commit comments

Comments
 (0)