使用完整的composer.json迁移symfony 4项目

时间:2019-01-22 15:35:48

标签: symfony composer-php migration symfony4

我想迁移到具有新功能的symfony 4.2。

通常在有关迁移的帖子中,据说要更改composer.json中的一行:

symfony/symfony: X.X

与此同时,我还有更多的台词。我不确定是否是因为实例化我的项目的方式?这是我的:

 "require": {
        "php": "^7.1.3",
        "ext-iconv": "*",
        "aws/aws-sdk-php": "^3.69",
        "beelab/tag-bundle": "^1.3",
        "friendsofsymfony/user-bundle": "^2.1",
        "google/apiclient": "^2.0",
        "gumlet/php-image-resize": "^1.9",
        "kunalvarma05/dropbox-php-sdk": "^0.2.1",
        "lildude/phpsmug": "^4.0",
        "sendinblue/api-v3-sdk": "*@dev",
        "sensio/framework-extra-bundle": "^5.1",
        "sensiolabs/security-checker": "^4.1",
        "symfony/apache-pack": "^1.0",
        "symfony/asset": "^4.2",
        "symfony/console": "^4.2",
        "symfony/debug-pack": "^1.0",
        "symfony/dependency-injection": "^4.2",
        "symfony/dotenv": "^4.2",
        "symfony/flex": "^1.0",
        "symfony/form": "^4.0",
        "symfony/framework-bundle": "^4.0",
        "symfony/lock": "^4.0",
        "symfony/lts": "^4@dev",
        "symfony/maker-bundle": "^1.4",
        "symfony/monolog-bundle": "^3.3",
        "symfony/orm-pack": "^1.0",
        "symfony/swiftmailer-bundle": "^3.2",
        "symfony/twig-bundle": "^4.0",
        "symfony/web-server-bundle": "^4.0",
        "symfony/yaml": "^4.0"
    },

我是否将所有4.0更改为4.2?

1 个答案:

答案 0 :(得分:0)

正如@dbrumann在评论中所说,我逐包更新了程序包,并检查一切是否正常。