未定义的类常量' API_VERSION_2_5_BC'

时间:2014-12-03 14:51:29

标签: php validation symfony composer-php

创建新的2.3项目然后向composer.json添加一组依赖项后,在cache:clear结束时运行composer update命令时会发生以下错误:

  

致命错误:未定义的类常量'API_VERSION_2_5_BC'   ... \供应商\ symfony的\框架束\的Symfony \包\ FrameworkBundle \ DependencyInjection \ FrameworkExtension.php   在第758行

添加的依赖项来自在Symfony 2.5上构建的功能齐全的现有项目。目标是尝试将Symfony CMF添加到项目中,主要是为了查看它是否增加了所需的功能。

API_VERSION_2_5_BC的搜索显示它与验证有关。有解决方法,还是我应该放弃这项工作?

composer.json(部分)

"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.3.*",
    "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.3.*",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "incenteev/composer-parameter-handler": "~2.0",
    "friendsofsymfony/user-bundle": "2.0.*@dev",
    "knplabs/knp-menu": "2.0.*@dev",
    "knplabs/knp-menu-bundle": "2.0.*@dev",
    "pugx/multi-user-bundle": "3.0.*@dev",
    "doctrine/doctrine-fixtures-bundle": "2.2.*",
    "liip/functional-test-bundle": "1.0.*@dev",
    "psliwa/pdf-bundle": "1.0.@dev",
    "braincrafted/bootstrap-bundle": "2.1.*",
    "oyejorge/less.php": "~1.5",
    "twbs/bootstrap": "3.0.*",
    "jquery/jquery":  "1.11.*",
    "egeloen/ckeditor-bundle": "~2.0",
    "helios-ag/fm-elfinder-bundle": "~3.0"
},

0 个答案:

没有答案