1

我昨天开始,我尝试在我现有的项目中安装 symfony/cmf 包。不幸的是,我对作曲家不太熟悉,它以一团糟而告终。现在我恢复了我的项目并用干净的头脑再次尝试,但今天同样的问题。

我按照文档进行了操作,PHPPCR 表已成功初始化。但是下一步会导致软件包版本出现问题(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].

我还尝试了此消息下方的链接,但对我没有帮助。我昨天所做的是尝试调整所需的版本,但问题只是从一个包转移到另一个包。

如果有人可以帮助我提供一个具体的解决方案或一个很好的提示,我可以自己解决它,那就太好了(不,那不是谷歌。这就是我昨天尝试了好几个小时而没有解决方案的方式;-)) .

4

1 回答 1

2

很抱歉你正面临这个问题。事实是我们处于一个有点混乱的境地,这尤其糟糕,因为我们的一个冗长的教程提到了这个 Bundle。RoutingAutoBundle 目前确实不容易不稳定。我们希望尽快发布 CMF 1.2,它最终将具有 RoutingAutoBundle 的稳定版本。这个捆绑包上有几个开放的 PR。如果您有动力提供帮助,请查看并评论门票以与作者联系。

于 2014-07-04T12:18:55.953 回答