gpt4 book ai didi

symfony-2.2 - 我正在尝试使用 Sonata Admin Bundle 安装 Symfony 2.2,但我从 Composer : 收到以下错误

转载 作者:行者123 更新时间:2023-12-02 22:09:28 24 4
gpt4 key购买 nike

使用包信息加载 Composer 存储库更新依赖项(包括 require-dev)无法将您的要求解析为一组可安装的软件包。

问题一- 无法在任何版本中找到请求的包 sonata-project/admin-bundle,包名称中可能有错字。问题2- 在任何版本中都找不到所请求的包 sonata-project/doctrine-orm-admin-bundle,包名称中可能有错字。问题3- 无法在任何版本中找到请求的包 sonata-project/user-bundle,包名称中可能有错字。

composer.json 代码

{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"sonata-project/admin-bundle": "*",
"sonata-project/cache-bundle": "*",
"sonata-project/doctrine-orm-admin-bundle": "*",
"stof/doctrine-extensions-bundle": "1.1.x-dev",
"sonata-project/user-bundle": "*",
"sonata-project/easy-extends-bundle": "*",
"friendsofsymfony/user-bundle": "*",
"friendsofsymfony/jsrouting-bundle": "*",
"liip/imagine-bundle": "*",
"simplethings/form-extra-bundle": "dev-master",
"antimattr/google-bundle": "dev-master",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"genemu/form-bundle": "2.1.*",
"behat/behat": "2.4.*@stable",
"behat/mink": "1.4.*@stable",
"behat/symfony2-extension": "*@stable",
"behat/mink-extension": "*@stable",
"behat/mink-selenium2-driver": "*@stable",
"behat/mink-browserkit-driver": "*",
"liip/functional-test-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "alpha",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"branch-alias": {
"dev-master": "2.2-dev"
}
}

最佳答案

您需要指定“dev-master”并添加“Bock-Bundle”依赖项。

改变

"sonata-project/admin-bundle": "",

"sonata-project/block-bundle": "dev-master",
"sonata-project/admin-bundle": "dev-master",

关于symfony-2.2 - 我正在尝试使用 Sonata Admin Bundle 安装 Symfony 2.2,但我从 Composer : 收到以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15568028/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com