Comments (8)
No problem @youngdreamer33 :). The snippet in the README is just an example to show that you can define multiple projects. Here is a minimal example:
kreait_firebase:
projects:
my_project: # <- you can name this whatever you want
database_uri: 'https://my_project.firebaseio.com'
api_key: '<api_key>'
You just have to replace the values for database_uri
and api_key
with the actual values from project.
from firebase-bundle.
Hey @youngdreamer33,
there is no 1.0 release yet, in the meantime you can install it with
composer require kreait/firebase-bundle 1.0.x-dev
or insert
"kreait/firebase-bundle": "1.0.x-dev",
in your composer.json
followed by a composer update
.
from firebase-bundle.
Yes, this was a bug that I fixed a couple of minutes ago 🙈, please try a composer update
to get the latest files :)
from firebase-bundle.
Update: in fact I didn't see the fact that composer failed to install the bundle saying that there is no version 1.0.
from firebase-bundle.
Thanks, this is what I did.
When I run the server I got this message:
[LogicException]
Users will expect the alias of the default extension of a bundle to be the underscored version of the bundle name (
"firebase"). You can override "Bundle::getContainerExtension()" if you want to use "kreait_firebase" or another alias.
Do you know how and where I can override it by any chance ? :)
from firebase-bundle.
Thanks but now I got this error:
[Symfony\Component\Config\Definition\Exception\InvalidTypeException]
Invalid type for path "kreait_firebase.projects.third". Expected array, but got string
^^
Sorry for the inconvenience !
from firebase-bundle.
Thanks !! I didn't think it was an issue in config.yml but with your explanation I understand better how the bundle works so thanks a lot for your help !
from firebase-bundle.
You're welcome! 🌺
from firebase-bundle.
Related Issues (20)
- Requested entity was not found. In Parser.php line 95: The JWT string must have two dots HOT 3
- Recommended usage triggers deprecation errors HOT 8
- Messaging sendAll() does not return correct feedback when there's an errorneous request HOT 3
- Compatibiliy for symfony 5 HOT 2
- kreait_firebase.my_project.messaging HOT 8
- There is no extension able to load the configuration for "kreait_firebase" HOT 3
- The definition for "kreait\firebase\factory" has no class. HOT 9
- Symfony secrets management support HOT 2
- [feature request] Trigger Event(s) HOT 2
- CloudMessage in service ? HOT 4
- Ability to use guzzle middleware? HOT 2
- PHP 8 Support HOT 2
- Failed to load class Google\Cloud\Firestore\FirestoreClient used by typed property Kreait\Firebase\Firestore::$client during preloading HOT 5
- Symfony 6 compatibility HOT 1
- 2.6.0 calls setDeprecated with incorrect parameters for Symfony 4.4 HOT 2
- Feature request: support for FCM localization HOT 1
- Cannot autowire "Kreait\Firebase\Contract\Auth" HOT 2
- Symfony 6.1 Support HOT 1
- Cannot autowire service "App\Service\PushService": argument "$messaging" of method "__construct()" references interface "Kreait\Firebase\Contract\Messaging" but no such service exists HOT 11
- [Possible Bug] sendMulticast isn't working anymore. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-bundle.