Rumah > Soal Jawab > teks badan
Saya cuba memasang pakej symfony async-aws: https://async-aws.com/integration/symfony-bundle.html, apabila saya cuba menjalankan composer require async-aws/async- 时,我遇到了以下错误aws-bundle
Nampaknya bercanggah dengan pakej lain yang memerlukan, tetapi saya belum menemuinya lagi. Saya cuba memadamkan folder vendor saya dan fail composer.lock dan memasang pakej itu.
Sekiranya sesiapa boleh membantu menyelesaikan masalah ini, ia amat dihargai.
Permintaan anda tidak boleh dihuraikan menjadi satu set yang boleh dipasang Beg.
Soalan 1 - Root composer.json memerlukan async-aws/async-aws-bundle ^1.7 ->Boleh berpuas hati dengan async-aws/async-aws-bundle[1.7.0]. - async-aws/async-aws-bundle 1.7.0 memerlukan symfony/config ^4.4 || ^6.0 -> , ..., v5.4.9, v6.0.0, ..., v6.1.0] tetapi ini mungkin tidak dimuatkan Kerana ia bercanggah dengan keperluan lain.
Anda juga boleh mencuba menjalankan semula komposer memerlukan dengan versi eksplisit Kekangan, seperti "Komposer memerlukan async-aws/async-aws-bundle:*" Tentukan jika mana-mana versi boleh dipasang atau "komposer memerlukan" async-aws/async-aws-bundle:^2.1" (jika anda tahu yang mana satu yang anda perlukan).
Pemasangan gagal, memulihkan ./composer.json dan ./composer.lock ke kandungan asal mereka.
Fail composer.json
saya,
{ "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 }
}
P粉9491909722024-03-30 00:53:59
Mengikut keperluan ini, anda masih menggunakan Symfony 3.4:
"symfony/symfony": "3.4.*",
Sila ambil perhatian bahawa versi ini tidak lagi disokong mulai November 2021, jadi sila kemas kini aplikasi anda kepada mana-mana versi Symfony yang terkemudian.
Walaupun keluaran pertama async-aws/async-aws-bundle
memerlukan sekurang-kurangnya Symfony 4.4, jika anda benar-benar mahu menggunakan pakej yang diberikan, anda tidak mempunyai peluang lain