将Symfony3中的内容与谷歌地图集成

时间:2017-10-25 22:23:27

标签: google-maps symfony

我正在尝试使用此捆绑包: https://github.com/egeloen/IvoryGoogleMapBundle/blob/master/Resources/doc/installation.md 使用此命令:

composer require egeloen / google-map-bundle

告诉我这个错误:

> Problem 1
>     - Conclusion: don't install egeloen/google-map-bundle 2.2.1
>     - Conclusion: remove symfony/symfony v3.3.10
>     - Installation request for egeloen/google-map-bundle ^2.2 -> satisfiable by egeloen/google-map-bundle[2.2.0, 2.2.1].
>     - Conclusion: don't install symfony/symfony v3.3.10

如何修复它或知道另一个适用于symfony3的软件包?

1 个答案:

答案 0 :(得分:0)

该解决方案位于Bundle的作者网站: https://github.com/egeloen/IvoryGoogleMapBundle/issues/175#issuecomment-244535511

这是composer.json文件中的代码:

{
    "require": {
        "egeloen/google-map": "^2.0@dev",
        "egeloen/google-map-bundle": "^3.0@dev"
    }
}

这段代码是必要的:

$ composer update --ignore-platform-reqs

此部分的解决方案在此链接中:https://stackoverflow.com/a/32839015/2400373

此致