Presta 站点地图包安装错误

Presta Sitemap Bundle Install Error

我已经遵循了 presta 站点地图包文档,但我仍然遇到问题。

我的 composer.json 文件中有这一行:

"presta/sitemap-bundle": "dev-master"

但是我得到这个错误:

附带说明一下,如果有人可以向我推荐一种更好的方法来使用 symfony2 制作 xml 站点地图,那也很棒。

尽量避免安装分支!它们的稳定性始终是 "dev",您无法确定您正在安装或更新到哪个版本。

"presta/sitemap-bundle" 有几个标记版本 according to Packagist,目前范围从 1.0.0 到 1.4.0。选择这些版本之一(使用最新版本没有任何问题,除非由于与其他已安装软件包的兼容性而必须选择旧版本),并根据需要允许更新:

composer require presta/sitemap-bundle
# installs a version close to the latest if other packages allow it, with default update possibility

composer require presta/sitemap-bundle:~1.4
# forces to at least install version 1.4, allowing for compatible feature updates like 1.5, 1.99,..., but no incompatible version 2.0

composer require presta/sitemap-bundle:1.4.*
# this only allows bugfix updates of 1.4.x versions.