时解决此问题
安装 doctrine/doctrine-migrations-bundle
有错误
FatalErrorException in appDevDebugProjectContainer.php line 4719:
Parse Error: syntax error, unexpected ':', expecting ';' or '{'
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.6",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"symfony/polyfill-apcu": "^1.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"doctrine/doctrine-migrations-bundle": "^1.0"
},
删除作曲家中的学说/学说移民 - 所有工作
- Removing doctrine/doctrine-migrations-bundle (v1.2.0)
- Removing doctrine/migrations (1.4.1)
- Removing ocramius/proxy-manager (2.0.4)
- Removing zendframework/zend-code (3.1.0)
- Removing zendframework/zend-eventmanager (3.0.1)
- Removing ocramius/package-versions (1.1.1)
我的版本PHP(5.6.28-1)没有迁移捆绑一切正常如何解决此问题?
否,我尝试了许多版本捆绑包,但是在将PHP版本更改为7.0
我认为某处有一个特殊的符号。尝试删除最后一行(不要忘记在上一行上删除逗号)并致电命令composer require doctrine/doctrine-migrations-bundle
。
它将在composer.json中添加正确的行。