2012-07-26 57 views
0

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

ErrorException: User Deprecated: The PropelBundle uses a new branching model, you should switch to the 1.0 branch (1.0.x versions). For more information, please read: https://github.com/propelorm/PropelBundle/wiki in /home/project_path/vendor/bundles/Propel/PropelBundle/PropelBundle.php line 28

然而,在DEPS文件PropelBundle版本設置爲1.0像它在這裏reccomended: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 update nothing Initializing PEAR repository http://pear.phing.info Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested PHP extension ext-mongo * is missing from your system. Problem 2 - doctrine/mongodb dev-master requires ext-mongo * -> no matching package found. - doctrine/mongodb-odm-bundle dev-master requires doctrine/mongodb-odm dev-master -> satisfiable by doctrine/mongodb-odm dev-master. - doctrine/mongodb-odm dev-master requires doctrine/mongodb dev-master -> satisfiable by doctrine/mongodb dev-master. - Installation request for doctrine/mongodb-odm-bundle dev-master -> satisfiable by doctrine/mongodb-odm-bundle dev-master.

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.

這些包都需要AdminGenerator,這我試圖安裝。

+0

你可以在PropelBundle中檢查提交散列嗎?應該是'a712d9e4aa' – 2012-07-27 11:28:37

回答

3

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

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

然後移除PropelBundle供應商(室射頻供應商/.../ PropelBundle)並重新安裝。此消息僅在跟蹤主分支時出現。

+0

它解決了這個問題,但現在我得到:「所請求的PHP擴展ext-mongo *從系統中丟失」和「doctrine/mongodb-odm-bundle dev-master需要doctrine/mongodb-odm dev在運行'composer.phar install'之後,可以通過doctrine/mongodb-odm dev-master來完成。 – 2012-07-27 14:57:12

+0

然後這是另一個問題:) – j0k 2012-07-27 15:11:31