kreait / firebase-bundle

A Symfony Bundle for the Firebase PHP Admin SDK
https://github.com/kreait/firebase-php
MIT License
136 stars 26 forks source link

Fix manually added service_account_credentials.json #7

Closed HossamYoussof closed 6 years ago

HossamYoussof commented 6 years ago

Fix service account credentials file auto discover when credentials path configured.

credentials: '%kernel.project_dir%/src/AppBundle/Resources/config/service_account_credentials.json'

Kreait\Firebase\ServiceAccount\Discovery\FromEnvironmentVariable: The environment variable "FIREBASE_CREDENTIALS" is not set.
Kreait\Firebase\ServiceAccount\Discovery\FromEnvironmentVariable: The environment variable "GOOGLE_APPLICATION_CREDENTIALS" is not set.
Kreait\Firebase\ServiceAccount\Discovery\FromGoogleWellKnownFile: The well known file is not readable or invalid
jeromegamez commented 6 years ago

Merged with 9d6ad1f0b57bee6f626829dd742c98859b770b0c - thank you @HossamYoussof!