Symfony async-aws-bundle安装错误与作曲家需要冲突

发布于 2025-02-06 09:45:32 字数 3791 浏览 1 评论 0原文

我试图安装ASYNC-AWS SYMFONY BUNDLE: https://async-aws.com//集成/symfony-bundle.html 当我尝试运行作曲家需要async-aws/async-aws-bundle时,我面临以下

错误但是我还找不到。 我试图删除我的供应商文件夹和composer.lock文件并安装软件包。

感谢任何人可以帮助解决这个问题。

您的要求无法解决到可安装的一组 软件包。

问题1 - root composer.json需要异步aws/async-aws-bundle ^1.7 - >通过异步 - aws/async-aws-bundle [1.7.0]满足。 - async-aws/async-aws-bundle 1.7.0要求symfony/config ^4.4 || ^5.0 || ^6.0 - >找到symfony/config [v4.4.0,...,v4.4.42,v5.0.0, ...,v5.4.9,v6.0.0,...,v6.1.0],但这些都没有加载,可能 因为它与另一个要求冲突。

您也可以尝试使用明确版本的重新运行作曲家要求 约束,例如,“作曲家需要异步/异步 - aws-bundle:*” 找出是否可以安装任何版本,或者“作曲家需要 async-aws/async-aws-bundle:^2.1“如果您知道您需要的。

安装失败,恢复./composer.json和./composer.lock to 他们的原始内容。

我的composer.json文件,

{
"name": "",
"license": "",
"type": "project",
"autoload": {
    "psr-4": {
        "AppBundle\\": "src/AppBundle"
    },
    "classmap": [
        "app/AppKernel.php",
        "app/AppCache.php"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Tests\\": "tests/"
    },
    "files": [
        "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
    ]
},
"require": {
    "php": ">=7.3",
    "ext-curl": "*",
    "ext-gmp": "*",
    "ext-intl": "*",
    "ext-json": "*",
    "ext-mbstring": "*",
    "ext-mongodb": "^1.8.1",
    "ext-openssl": "*",
    "async-aws/cognito-identity-provider": "^1.4",
    "async-aws/s3": "^1.12",
    "async-aws/simple-s3": "^1.1",
    "async-aws/sns": "^1.3",
    "async-aws/sqs": "^1.7",
    "doctrine/mongodb-odm-bundle": "^3.6.0",
    "fakerphp/faker": "^1.9",
    "friendsofsymfony/jsrouting-bundle": "^2.6",
    "friendsofsymfony/user-bundle": "~2.0",
    "php-http/guzzle6-adapter": "^2.0",
    "php-http/httplug-bundle": "^1.19",
    "sensio/distribution-bundle": "^5.0.19",
    "sensio/framework-extra-bundle": "^5.0.0",
    "symfony/dotenv": "^3.4",
    "symfony/intl": "^3.4",
    "symfony/monolog-bundle": "^3.1.0",
    "symfony/polyfill-apcu": "^1.0",
    "symfony/polyfill-php81": "^1.23",
    "symfony/swiftmailer-bundle": "^2.6.4",
    "symfony/symfony": "3.4.*",
    "twig/extensions": "^1.5",
    "twig/twig": "^1.0||^2.0",
},
"require-dev": {
    "doctrine/data-fixtures": "^1.4",
    "phpstan/phpstan": "^0.12.33",
    "phpstan/phpstan-doctrine": "^0.12.33",
    "phpstan/phpstan-symfony": "^0.12.30",
    "symfony/maker-bundle": "^1.20",
    "symfony/phpunit-bridge": "5.1.3",
},
"scripts": {
    "symfony-scripts": [
        "AppBundle\\Util\\Helper\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ],
    "post-install-cmd": [
        "@symfony-scripts"
    ],
    "post-update-cmd": [
        "@symfony-scripts"
    ],
    "test": "./vendor/bin/simple-phpunit -d memory_limit=-1",
    "phpcs": "./vendor/bin/phpcs --extensions=php --standard=PSR2 ./src/*",
    "phpcbf": "./vendor/bin/phpcbf --extensions=php --standard=PSR2 ./src/*",
    "stan" : "./vendor/bin/phpstan analyse --level=7 ./src"
},
"config": {
    "sort-packages": true,
    "process-timeout":0,
    "platform": {
        "ext-mongo": "1.6.16"
    },
    "allow-plugins": {
        "composer/package-versions-deprecated": true,
    }
},
"minimum-stability": "stable",
"extra": {
    "symfony-app-dir": "app",
    "symfony-bin-dir": "bin",
    "symfony-var-dir": "var",
    "symfony-web-dir": "web",
    "symfony-tests-dir": "tests",
    "symfony-assets-install": "relative",
    "branch-alias": null
}

}

I tried to install async-aws symfony bundle: https://async-aws.com/integration/symfony-bundle.html and I faced the below error when I try to run the composer require async-aws/async-aws-bundle

It seems to be conflicting with another package require but I could not find it yet.
I have tried to delete my vendor folder and composer.lock file and install the packages as well.

Appreciate if anyone can be any help to resolve this.

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

Problem 1
- Root composer.json requires async-aws/async-aws-bundle ^1.7 -> satisfiable by async-aws/async-aws-bundle[1.7.0].
- async-aws/async-aws-bundle 1.7.0 requires symfony/config ^4.4 || ^5.0 || ^6.0 -> found symfony/config[v4.4.0, ..., v4.4.42, v5.0.0,
..., v5.4.9, v6.0.0, ..., v6.1.0] but these were not loaded, likely
because it conflicts with another require.

You can also try re-running composer require with an explicit version
constraint, e.g. "composer require async-aws/async-aws-bundle:*" to
figure out if any version is installable, or "composer require
async-aws/async-aws-bundle:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to
their original content.

My composer.json file,

{
"name": "",
"license": "",
"type": "project",
"autoload": {
    "psr-4": {
        "AppBundle\\": "src/AppBundle"
    },
    "classmap": [
        "app/AppKernel.php",
        "app/AppCache.php"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Tests\\": "tests/"
    },
    "files": [
        "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
    ]
},
"require": {
    "php": ">=7.3",
    "ext-curl": "*",
    "ext-gmp": "*",
    "ext-intl": "*",
    "ext-json": "*",
    "ext-mbstring": "*",
    "ext-mongodb": "^1.8.1",
    "ext-openssl": "*",
    "async-aws/cognito-identity-provider": "^1.4",
    "async-aws/s3": "^1.12",
    "async-aws/simple-s3": "^1.1",
    "async-aws/sns": "^1.3",
    "async-aws/sqs": "^1.7",
    "doctrine/mongodb-odm-bundle": "^3.6.0",
    "fakerphp/faker": "^1.9",
    "friendsofsymfony/jsrouting-bundle": "^2.6",
    "friendsofsymfony/user-bundle": "~2.0",
    "php-http/guzzle6-adapter": "^2.0",
    "php-http/httplug-bundle": "^1.19",
    "sensio/distribution-bundle": "^5.0.19",
    "sensio/framework-extra-bundle": "^5.0.0",
    "symfony/dotenv": "^3.4",
    "symfony/intl": "^3.4",
    "symfony/monolog-bundle": "^3.1.0",
    "symfony/polyfill-apcu": "^1.0",
    "symfony/polyfill-php81": "^1.23",
    "symfony/swiftmailer-bundle": "^2.6.4",
    "symfony/symfony": "3.4.*",
    "twig/extensions": "^1.5",
    "twig/twig": "^1.0||^2.0",
},
"require-dev": {
    "doctrine/data-fixtures": "^1.4",
    "phpstan/phpstan": "^0.12.33",
    "phpstan/phpstan-doctrine": "^0.12.33",
    "phpstan/phpstan-symfony": "^0.12.30",
    "symfony/maker-bundle": "^1.20",
    "symfony/phpunit-bridge": "5.1.3",
},
"scripts": {
    "symfony-scripts": [
        "AppBundle\\Util\\Helper\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ],
    "post-install-cmd": [
        "@symfony-scripts"
    ],
    "post-update-cmd": [
        "@symfony-scripts"
    ],
    "test": "./vendor/bin/simple-phpunit -d memory_limit=-1",
    "phpcs": "./vendor/bin/phpcs --extensions=php --standard=PSR2 ./src/*",
    "phpcbf": "./vendor/bin/phpcbf --extensions=php --standard=PSR2 ./src/*",
    "stan" : "./vendor/bin/phpstan analyse --level=7 ./src"
},
"config": {
    "sort-packages": true,
    "process-timeout":0,
    "platform": {
        "ext-mongo": "1.6.16"
    },
    "allow-plugins": {
        "composer/package-versions-deprecated": true,
    }
},
"minimum-stability": "stable",
"extra": {
    "symfony-app-dir": "app",
    "symfony-bin-dir": "bin",
    "symfony-var-dir": "var",
    "symfony-web-dir": "web",
    "symfony-tests-dir": "tests",
    "symfony-assets-install": "relative",
    "branch-alias": null
}

}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

追星践月 2025-02-13 09:45:32

您仍在根据此要求使用Symfony 3.4:

“ Symfony/Symfony”:“ 3.4。*”,

请注意此版本自2021年11月以来就不支持,因此请更新您的应用程序后来版本的Symfony。

甚至最初发布的版本的async-aws/async-aws-bundle至少需要Symfony 4.4,如果您真的想使用给定的软件包,您就没有其他机会

You are still using Symfony 3.4 according to this requirement:

"symfony/symfony": "3.4.*",

Be warned that this version is out of support since Nov 2021, so please update your application to any later version of Symfony.

As even the very first released version of async-aws/async-aws-bundle requires at least Symfony 4.4, you have no other chance if you really want to use the given package

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文