Coder Social home page Coder Social logo

Comments (8)

jeromegamez avatar jeromegamez commented on May 27, 2024 2

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.

jeromegamez avatar jeromegamez commented on May 27, 2024 1

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.

jeromegamez avatar jeromegamez commented on May 27, 2024 1

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.

youngdreamer33 avatar youngdreamer33 commented on May 27, 2024

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.

youngdreamer33 avatar youngdreamer33 commented on May 27, 2024

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.

youngdreamer33 avatar youngdreamer33 commented on May 27, 2024

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.

youngdreamer33 avatar youngdreamer33 commented on May 27, 2024

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.

jeromegamez avatar jeromegamez commented on May 27, 2024

You're welcome! 🌺

from firebase-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.