提问者:小点点

Symfony 5升级和stof/条令扩展包存在问题[重复]


我从4.4升级Symfony项目时遇到问题。到5.0。我已经删除了所有的折旧等,现在正试图通过作曲家升级。

运行composer update“symfony/*”时,出现以下错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove stof/doctrine-extensions-bundle v1.6.0
    - Conclusion: don't install stof/doctrine-extensions-bundle v1.6.0
    - Conclusion: don't install symfony/console v5.0.11
    - Conclusion: don't install symfony/console v5.0.10
    - Conclusion: don't install symfony/console v5.0.9
    - Conclusion: don't install symfony/console v5.0.8
    - Conclusion: don't install symfony/console v5.0.7
    - Conclusion: don't install symfony/console v5.0.6
    - Conclusion: don't install symfony/console v5.0.5
    - Conclusion: don't install symfony/console v5.0.4
    - Conclusion: don't install symfony/console v5.0.3
    - Conclusion: don't install symfony/console v5.0.2
    - Installation request for stof/doctrine-extensions-bundle (locked at v1.6.0, required as ^1.3) -> satisfiable by stof/doctrine-extensions-bundle[v1.6.0].
    - Conclusion: don't install symfony/console v5.0.1
    - stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 -> satisfiable by symfony/http-kernel[v4.4.21].
    - symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
    - symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
    - Installation request for symfony/console 5.0.* -> satisfiable by symfony/console[v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.2, v5.0.3, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].

看起来symfony/console和symfony/http内核有问题。当我在packagist上检查stof/doctrine扩展包时,我在symfony/console上找不到任何限制。对于symfony/http内核,看起来至少需要5.2版本,但是,我不想直接升级到symfony 5.2,或者这是唯一可以解决这个问题的方法吗?是否有人看到/知道这个问题的来源,并能为我指出正确的方向?

这是我的composer.json:

{
    "type": "project",
    "license": "proprietary",
    "require": {
        "php": "^7.1.3",
        "ext-ctype": "*",
        "ext-curl": "*",
        "ext-iconv": "*",
        "ext-intl": "*",
        "ext-json": "*",
        "ext-openssl": "*",
        "ext-zlib": "*",
        "babdev/pagerfanta-bundle": "^2.10",
        "dompdf/dompdf": "^0.8.3",
        "endroid/qrcode-bundle": "^3.4",
        "friendsofsymfony/ckeditor-bundle": "^2.1",
        "league/csv": "^8.0",
        "mobiledetect/mobiledetectlib": "^2.8",
        "sensio/framework-extra-bundle": "^5.4",
        "stof/doctrine-extensions-bundle": "^1.3",
        "swiftmailer/swiftmailer": "^6.0",
        "symfony/apache-pack": "^1.0",
        "symfony/asset": "5.0.*",
        "symfony/console": "5.0.*",
        "symfony/dotenv": "5.0.*",
        "symfony/flex": "^1.3.1",
        "symfony/form": "5.0.*",
        "symfony/framework-bundle": "5.0.*",
        "symfony/intl": "5.0.*",
        "symfony/maker-bundle": "^1.13",
        "symfony/monolog-bundle": "^3.5",
        "symfony/orm-pack": "^1.0",
        "symfony/security-bundle": "5.0.*",
        "symfony/serializer": "5.0.*",
        "symfony/serializer-pack": "^1.0",
        "symfony/swiftmailer-bundle": "^3.4",
        "symfony/twig-bundle": "5.0.*",
        "symfony/yaml": "5.0.*"
    },
    "require-dev": {
        "doctrine/doctrine-fixtures-bundle": "^3.2",
        "symfony/phpunit-bridge": "^5.2",
        "symfony/profiler-pack": "^1.0"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "5.0.*"
        }
    }
}



共1个答案

匿名用户

stof/creative-扩展名-bundle v1.6.0需要symfony/超文本传输协议-内核^4.4||^5.2看起来很清楚:在那个给定版本中的包与Symfony 5.0不兼容

将stof/条令扩展包降级至v1。5(与Symfony 5.0兼容),或(更好的解决方案)将Symfony更新为v5。2-对5.0的支持已于2020年7月结束