在任何版本中都找不到所需的软件包 symfony2




我在Symfony2管理面板生成中面临问题,我的Symfony版本是2.5,这是我在安装Sonata管理包

时遇到的问题
<>之前问题1- symfony-cmf/标准版1.1的安装请求X-dev -> satisfi可以通过symfony-cmf/标准版[1.1.x-dev]。- symfony-cmf/标准版1.1X-dev需要sonata-project/doctrine-phpcr-admin-bundle 1.1。* ->没有找到匹配的包。潜在的原因:-包名中的错别字-根据您的要求,没有足够稳定的版本imum-stability设置之前

我搜索了一下,找到了一些可以阅读的东西,但没有任何帮助。什么可能是问题,什么是最合适的解决方案。已经6天了,我被管理面板困住了。我遵循官方文件,
后端-索纳塔管理,它的第一个声明指示我这之后,我得到了这些错误。抱歉,说来话长,但我很无助。在回答问题的同时,请用简单的话向我解释一下真正的解决方案是什么:)

请为sonata-project/admin-bundle需求提供一个版本约束:

我尝试了dev-master和dev,没有任何帮助。

感谢您的帮助:)

这里是composer.json

{
    "name": "symfony-cmf/standard-edition",
    "homepage": "http://cmf.symfony.com",
    "license": "MIT",
    "type": "project",
    "description": "The "Symfony CMF Standard Edition" distribution",
    "authors": [
        {
            "name": "Symfony CMF Community",
            "homepage": "https://github.com/symfony-cmf/standard-edition/contributors"
        }
    ],
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "jackalope/jackalope-doctrine-dbal": "1.1.*",
        "doctrine/doctrine-bundle": "1.2.*",
        "doctrine/data-fixtures": "1.0.*",
        "doctrine/doctrine-cache-bundle": "1.0.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "symfony-cmf/symfony-cmf": "1.2.*",
        "symfony-cmf/simple-cms-bundle": "1.2.*",
        "symfony-cmf/create-bundle": "1.2.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "sonata-project/doctrine-phpcr-admin-bundle": "1.1.*",
        "nelmio/alice": "1.*",
        "sonata-project/admin-bundle": "2.2.*@dev"
    },
    "require-dev": {
        "liip/functional-test-bundle": "1.0.*"
    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\ParameterHandler\ScriptHandler::buildParameters",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile",
            "Symfony\Cmf\Bundle\CreateBundle\Composer\ScriptHandler::downloadCreateAndCkeditor"
        ],
        "post-update-cmd": [
            "Incenteev\ParameterHandler\ScriptHandler::buildParameters",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
            "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile",
            "Symfony\Cmf\Bundle\CreateBundle\Composer\ScriptHandler::downloadCreateAndCkeditor"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "1.1-dev"
        }
    }
}

我希望您按照Sonata官方管理网站:http://sonata-project.org/bundles/admin/2-2/doc/reference/installation.html的安装说明进行安装

添加到composer.json中:"sonata-project/admin-bundle":"2.3 . * @dev"

相关内容

  • 没有找到相关文章

最新更新