Symfony2 CMF路由自动捆绑包 - 无法安装

时间:2014-10-09 16:50:03

标签: php symfony composer-php symfony-cmf

我正在尝试设置Symfony2 CMF,但在安装symfony-cmf/routing-auto-bundle时遇到问题。我所遵循的教程似乎表明这对于作曲家应该很简单,但我看到以下错误。

Problem 1
    - Installation request for symfony-cmf/routing-auto-bundle dev-master -> satisfiable by symfony-cmf/routing-auto-bundle[dev-master].
    - symfony-cmf/routing-auto-bundle dev-master requires symfony-cmf/routing-auto 1.0.* -> no matching package found.

我的composer.json位于下方。

{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/", "SymfonyStandard": "app/" }
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "jquery/jquery",
                "version": "1.11.1",
                "dist": {
                    "url": "http://code.jquery.com/jquery-1.11.1.js",
                    "type": "file"
                }
            }
        }
    ],
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.5.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.2",
        "doctrine/data-fixtures": "1.0.*",
        "twig/extensions": "~1.0",
        "symfony/assetic-bundle": "~2.3",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~3.0",
        "sensio/framework-extra-bundle": "~3.0",
        "incenteev/composer-parameter-handler": "~2.0",
        "mailgun/mailgun-php": "~1.7.1",
        "symfony/monolog-bundle": "~2.4",
        "braincrafted/bootstrap-bundle": "~2.0",
        "twbs/bootstrap": "3.0.*",
        "twbs/bootstrap-sass": "3.1.*",
        "jquery/jquery":  "1.11.*",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "jackalope/jackalope-doctrine-dbal": "1.1.*",
        "doctrine/phpcr-odm": "1.1.*",
        "doctrine/phpcr-bundle": "1.1.*",
        "symfony-cmf/symfony-cmf": "1.1.*",
        "symfony-cmf/routing-auto-bundle": "dev-master",
        "sonata-project/doctrine-phpcr-admin-bundle": "1.2.*@dev",
        "doctrine/data-fixtures": "1.0.*@dev"

    },
    "require-dev": {
        "sensio/generator-bundle": "~2.3"
    },
    "scripts": {
        "post-root-package-install": [
            "SymfonyStandard\\Composer::hookRootPackageInstall"
        ],
        "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",
                "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
            "Braincrafted\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::install"
        ],
        "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",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
            "Braincrafted\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::install"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.5-dev"
        }
    }
}

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:2)

还没有正确的RoutingAutoBundle版本,所以你指定“dev-master”是正确的,但是bundle也使用了一个尚未发布的RoutingAuto组件。你现在有两个选择: 1)添加对“symfony-cmf / routing-auto”的依赖:“dev-master” 2)设置“最小稳定性”:“dev”