Symfony 2.0.9和错误的PropelBundle版本


Symfony 2.0.9 and wrong PropelBundle version

我在使用Symfony 2.0.9的PropelBundle版本时遇到问题。

错误异常:用户不推荐:PropelBundle使用新的分支模型,您应该切换到1.0分支(1.0.x版本)。欲了解更多信息,请阅读:https://github.com/propelorm/PropelBundle/wiki在/home/project_path/vender/bundles/PPropel/PPropelBundle.php第28行

然而,在deps文件中,PropelBundle版本被设置为1.0,就像这里建议的那样:https://github.com/propelorm/PropelBundle/wiki

[属性捆绑包]吉特=git://github.com/propelorm/PropelBundle.gittarget=/bundles/PPropel/PPropelBundle版本=原点/1.0

[芬]吉特=git://github.com/Xosofox/phing.gittarget=/phing

[推进]吉特=git://github.com/propelorm/Propel.gittarget=/推进版本=原点/1.0

[条令固定装置]吉特=http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle]吉特=http://github.com/doctrine/DoctrineFixturesBundle.gittarget=/bundles/Symfony/bundles/DoctrineFixturesBundle版本=原点/2.0

我试着重新安装供应商,但没有任何改变。

编辑:多亏了Williams,我解决了这个问题,但现在我出现了这个错误:

/composer.phar不更新任何内容正在初始化PEAR存储库http://pear.phing.info更新依赖项无法将您的要求解析为一组可安装的程序包。

问题1-您的系统中缺少请求的PHP扩展插件ext-mongo*。问题2-doctrine/mongodb-dev-master需要ext-mongo*->找不到匹配的包。-doctrine/mongodb-odm-bundle dev-master需要doctrine/mengodb-odm dev-master->可由doctrine/mongodb-odm-dev-master满足。-doctrine/mongodb-odm-dev-master需要doctrine/mongodb-dev-master->可由doctrine/mengodb-dev-master满足。-doctrine/mongodb-odm-bundle dev-master的安装请求->可由doctrine/mengodb-odm bundle dev-master满足。

潜在原因:-包裹名称拼写错误-根据您的最低稳定性设置,该软件包没有足够稳定的版本看见https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion了解更多详细信息。

这些软件包是AdminGenerator所必需的,我正在尝试安装它。

您似乎使用了供应商的旧版本。

首先,删除您的网络钓鱼配置,并使用官方存储库:https://github.com/phingofficial/phing

然后,删除您的PropelBundle供应商(rm-rf vendor/…/PpropelBundle)并重新安装它。只有当您跟踪主分支时,才会出现此消息。