我现有项目中symfony-cmf / routing-auto-bundle的版本问题

时间:2014-07-04 09:56:02

标签: php symfony composer-php symfony-cmf

我昨天开始尝试在现有项目中安装symfony / cmf软件包。不幸的是,我对作曲家并不熟悉,结果却是一团糟。现在我恢复了我的项目,并用干净的脑袋再次尝试,但今天同样的问题。

我遵循documentation并成功初始化了PHPCR表。但是下一步会导致包版本出现问题(symfony-cmf / routing-auto-bundle)。

这里是我的要求和作曲家留言:

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "~2.4",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "jms/security-extra-bundle": "1.5.*@dev",
    "doctrine/doctrine-fixtures-bundle": "2.2.*",
    "friendsofsymfony/jsrouting-bundle": "1.1.*",
    "hwi/oauth-bundle": "0.4.*@dev",
    "twbs/bootstrap": "dev-master",

    "symfony-cmf/routing-auto-bundle": "1.0.*@alpha",
    "symfony-cmf/menu-bundle": "1.1.*",
    "sonata-project/doctrine-phpcr-admin-bundle": "1.1.*",
    "symfony-cmf/tree-browser-bundle": "1.1.*",

    "jackalope/jackalope-doctrine-dbal": "1.1.*",

    "doctrine/phpcr-odm": "1.1.*",
    "phpcr/phpcr-utils": "1.1.*",
    "doctrine/phpcr-bundle": "1.1.*",
    "symfony-cmf/routing-bundle": "1.2.*",
    "symfony-cmf/routing": "1.2.*"
},

和消息

Problem 1
- The requested package symfony-cmf/tree-browser-bundle could not be found in any version, there may be a typo in the package name.
Problem 2
- Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].
- symfony/framework-standard-edition 2.4.x-dev requires symfony-cmf/tree-browser-bundle 1.1.* -> no matching package found.
Problem 3
- symfony-cmf/routing-auto-bundle 1.0.0-alpha9 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha8 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha7 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha6 requires symfony-cmf/routing-bundle ~1.1.0-RC1 -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha5 requires symfony-cmf/routing-bundle ~1.1.0-RC1 -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha4 requires symfony-cmf/routing-bundle ~1.1.0-RC1 -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha3 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha2 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha10 requires symfony-cmf/routing-bundle 1.1.* -> no matching package found.
- symfony-cmf/routing-auto-bundle 1.0.0-alpha1 requires aferrandini/urlizer dev-master -> no matching package found.
- Installation request for symfony-cmf/routing-auto-bundle 1.0.*@alpha -> satisfiable by symfony-cmf/routing-auto-bundle[1.0.0-alpha1, 1.0.0-alpha10, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.0-alpha4, 1.0.0-alpha5, 1.0.0-alpha6, 1.0.0-alpha7, 1.0.0-alpha8, 1.0.0-alpha9].

我也试过了这条消息下面的链接,但它对我没有帮助。我昨天所做的是我试图调整所需的版本,但问题只是从一个包转移到另一个包。

如果有人可以帮我解决一个具体的解决方案或一个好的提示,我可以自己解决这个问题,这将是非常好的(不,那不是谷歌。这就是我昨天尝试了几个小时没有解决方案的方式; - ))。

1 个答案:

答案 0 :(得分:2)

对不起,您正面临这个问题。事实是我们处于一个有点混乱的状态,这是特别糟糕的,因为我们的一个冗长的教程提到了这个Bundle。 RoutingAutoBundle确实目前不容易不稳定。我们希望尽快发布CMF 1.2,它最终将具有RoutingAutoBundle的稳定版本。这个Bundle有几个开放的PR。如果你有动力帮助看看那里并评论与作者联系的门票。