【发布时间】:2012-07-24 18:24:36
【问题描述】:
我在使用 Symfony 2.0.9 的 PropelBundle 版本时遇到问题。
ErrorException: User Deprecated: PropelBundle 使用新的分支模型,您应该切换到 1.0 分支(1.0.x 版本)。欲了解更多信息,请阅读:https://github.com/propelorm/PropelBundle/wiki /home/project_path/vendor/bundles/Propel/PropelBundle/PropelBundle.php 第 28 行
但是,在 deps 文件中,PropelBundle 版本设置为 1.0,就像这里推荐的一样:https://github.com/propelorm/PropelBundle/wiki
[PropelBundle] git=git://github.com/propelorm/PropelBundle.git 目标=/bundles/Propel/PropelBundle 版本=origin/1.0
[平] git=git://github.com/Xosofox/phing.git 目标=/phing
[推进] git=git://github.com/propelorm/Propel.git 目标=/推进 版本=origin/1.0
[教义装置] git=http://github.com/doctrine/data-fixtures.git
[DoctrineFixturesBundle] git=http://github.com/doctrine/DoctrineFixturesBundle.git 目标=/bundles/Symfony/Bundle/DoctrineFixturesBundle 版本=origin/2.0
我尝试重新安装供应商,但没有任何改变。
编辑:感谢威廉姆斯,我解决了这个问题,但是现在我遇到了这个错误:
./composer.phar 无更新 初始化 PEAR 存储库http://pear.phing.info 更新依赖项 无法将您的要求解析为一组可安装的软件包。
问题 1 - 您的系统中缺少请求的 PHP 扩展 ext-mongo *。 问题 2 - 学说/mongodb dev-master 需要 ext-mongo * -> 找不到匹配的包。 - 学说/mongodb-odm-bundle dev-master 需要学说/mongodb-odm dev-master -> 可以满足学说/mongodb-odm dev-master。 - 教义/mongodb-odm dev-master 需要教义/mongodb dev-master -> 可由教义/mongodb dev-master 满足。 - 对教条/mongodb-odm-bundle dev-master 的安装请求 -> 可满足于教条/mongodb-odm-bundle dev-master。
潜在原因: - 包名中的拼写错误 - 根据您的最低稳定性设置,该软件包在足够稳定的版本中不可用 有关详细信息,请参阅https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion。
这些软件包是我正在尝试安装的 AdminGenerator 所必需的。
【问题讨论】:
-
你能检查 PropelBundle 中的提交哈希吗?应该是
a712d9e4aa
标签: php symfony1 propel vendors