簡體   English   中英

Symfony 2.0.9和錯誤的PropelBundle版本

[英]Symfony 2.0.9 and wrong PropelBundle version

我在使用Symfony 2.0.9的PropelBundle版本遇到麻煩。

ErrorException:不建議使用的用戶:PropelBundle使用新的分支模型,應切換到1.0分支(1.0.x版本)。 有關更多信息,請閱讀:/home/project_path/vendor/bundles/Propel/PropelBundle/PropelBundle.php第28行中的https://github.com/propelorm/PropelBundle/wiki

但是,在deps文件中,將PropelBundle版本設置為1.0,就像在這里建議的那樣: https : //github.com/propelorm/PropelBundle/wiki

[PropelBundle] git = git://github.com/propelorm/PropelBundle.git target = / bundles / Propel / PropelBundle version = origin / 1.0

[phing] git = git://github.com/Xosofox/phing.git target = / phing

[propel] git = git://github.com/propelorm/Propel.git target = / propel version = origin / 1.0

[doctrine-fixtures] git = http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle] git = http://github.com/doctrine/DoctrineFixturesBundle.git target = / bundles / Symfony / Bundle / DoctrineFixturesBundle version = origin / 2.0

我試圖重新安裝供應商,但沒有任何改變。

編輯 :感謝威廉姆斯我解決了這個問題,但是現在我遇到了這個錯誤:

./composer.phar不更新任何內容初始化PEAR存儲庫http://pear.phing.info更新依賴項您的要求無法解決為一組可安裝的軟件包。

問題1-您的系統缺少所要求的PHP擴展名ext-mongo *。 問題2-doctrine / mongodb dev-master需要ext-mongo *->找不到匹配的軟件包。 -doctrine / mongodb-odm-dev開發大師需要doctrine / mongodb-odm-dev開發大師-> doctrine / mongodb-odm-dev-master可滿足要求。 -doctrine / mongodb-odm dev-master需要doctrine / mongodb dev-master-> doctrine / mongodb dev-master可滿足要求。 -doctrine / mongodb-odm-bundle dev-master的安裝請求-> doctrine / mongodb-odm-bundle dev-master可滿足的安裝請求。

可能的原因:-軟件包名稱中有錯字-根據您的最低穩定性設置,該軟件包不能以足夠穩定的版本提供,請參閱https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/討論以獲取更多詳細信息。

這些軟件包是AdminGenerator所必需的,我正在嘗試安裝。

看來您使用的是供應商的舊版本。

首先,刪除您的Phing配置,並使用官方存儲庫: https : //github.com/phingofficial/phing

然后,刪除您的PropelBundle供應商(rm -rf vendor /.../ PropelBundle)並重新安裝。 僅當您跟蹤master分支時才會出現此消息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM