创建新的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
的搜索显示它与验证有关。有解决方法,还是我应该放弃这项工作?
"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"
},