首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在symfony2应用程序中更新规则

如何在symfony2应用程序中更新规则
EN

Stack Overflow用户
提问于 2012-08-02 14:33:57
回答 1查看 1.3K关注 0票数 2

我有symfony 2.0.15和doctrine 2.1.7

这是我的deps文件

代码语言:javascript
复制
[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的教义。我如何更新它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-02 17:01:47

要小心,Doctrin2.3是不稳定的

代码语言:javascript
复制
[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

然后更新您的供应商:

代码语言:javascript
复制
php bin/vendors.php update

我的最后一个建议是切换到composer!它是一个健壮的PHP依赖管理系统。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11772222

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档