egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

I cannot download dev-master following master documentation #181

Closed ignasdamunskis closed 8 years ago

ignasdamunskis commented 8 years ago

I have followed master documentation and tried to download it's version of bundle by running:

$ composer require egeloen/google-map-bundle

But unfortunatelly it downloaded ^2.2 version of a bundle. I would think that this is correct version, but it is not. When I follow the documentation further I get an error in configuration after adding this to config.yml:

ivory_google_map:
    api_key: "%api_key%"

Error says:

Unrecognized option “api_key” under “ivory_google_map”

Here you mentioned:

Let me explain your issue, when refering to https://github.com/egeloen/IvoryGoogleMapBundle/blob/master/Resources/doc/service/distance_matrix.md#api-key you're refering to dev-master doc whereas if you're using the 2.2.1 version, you should use: https://github.com/egeloen/IvoryGoogleMapBundle/blob/2.2.1/Resources/doc/usage/services/distance_matrix/distance_matrix.md

Unfortunatelly for you, the api key support has only been added on master, so if you want to take benefit of it, you will need to upgrade.

Okay so I am 100% sure that documentation installation I followed downloaded wrong version and I have to upgrade it. But how?

I tried running:

$ composer require egeloen/google-map-bundle dev-master

And I got an error:

Problem 1

  • Installation request for egeloen/google-map-bundle dev-master -> satisfiable by egeloen/google-map-bundle[dev-master].
  • egeloen/google-map-bundle dev-master requires egeloen/google-map ^2.0@dev -> satisfiable by egeloen/google-map[2.0.x-dev] but these conflict with your requirements or minimum-stability.

Downloading ^2.0@dev did not solve my api_key problem either. Please can you help me? I cannot find any articles according this problem.