我正在尝试设置sonata用户捆绑。根据指令我也试图安装sonataeasy-extends(根据这些指令)。

不幸的是,我无法通过Composer安装轻松扩展(在Win7上):

>composer require sonata-project/easy-extends-bundle
Please provide a version constraint for the sonata-project/easy-extends-bundle requirement: dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package sonata-project/easy-extends-bundle could not be found in any version, there may be a typo in the package name.
  Problem 2
    - Installation request for symfony/framework-standard-edition 2.5.x-dev -> satisfiable by symfony/framework-standard-edition[2.5.x-dev].
    - symfony/framework-standard-edition 2.5.x-dev requires sonata-project/easy-extends-bundle 2.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
.

我尝试了各种版本约束,包括在说明中建议的2.0。

我缺少什么?

tia 马特

有帮助吗?

解决方案

基于Sonata-Users Google Group中的讨论,我设法通过手动将以下添加到我的composer.json

...    
"sonata-project/easy-extends-bundle": "dev-master",
...
.

GG中的相关线程可以找到

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top