2012-08-02 40 views
2

更新學說我的symfony 2.0.15和2.1.7主義如何Symfony2的應用

這是我DEPS文件

[doctrine-common] 
    git=http://github.com/doctrine/common.git 
    version=2.1.4 

[doctrine-dbal] 
    git=http://github.com/doctrine/dbal.git 
    version=2.1.7 

[doctrine] 
    git=http://github.com/doctrine/doctrine2.git 
    version=2.1.7 

[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 

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

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

但我想學說2.3。我該怎麼更新呢

回答

1

要小心,學說2.3不穩定

[doctrine-common] 
    git=http://github.com/doctrine/common.git 
    version=2.3.0-RC1 

[doctrine-dbal] 
    git=http://github.com/doctrine/dbal.git 
    version=2.3.0-RC1 

[doctrine] 
    git=http://github.com/doctrine/doctrine2.git 
    version=2.3.0-RC1 

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

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

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

[DoctrineMigrationsBundle] 
    git=http://github.com/doctrine/DoctrineMigrationsBundle.git 
    target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle 

然後更新您的供應商:

php bin/vendors.php update 

我最後的建議是切換到作曲家!這是一個強大的PHP依賴管理系統。

+0

我試過作曲家,我不知道如何使用它。我安裝了它,但我沒有工作。我很困惑如何處理我的舊app.php文件。我需要刪除它還是編輯它 – user17 2012-08-03 00:37:47

+1

您可以開始閱讀[Symfony安裝文檔](http://symfony.com/doc/master/book/installation.html#updating-vendors)的這一部分。 – Florent 2012-08-03 08:14:54