我有一个工作的symfony应用程序,今天我决定做一个 composer update
composer update
的结果可以在这里找到https://github.com/allan-simon/oauth2-symfony2-vagrant-fosuserbundle/commit/dfa25593f79c5595ca4759803ec1e998091c68b9(主要是次要版本的变化,注意symfony版本有变化,但保持2.6也会产生下面的问题)
现在升级后我收到了这个错误
脚本Sensio \ Bundle \ DistributionBundle \ Composer \ ScriptHandler :: clearCache处理post-update-cmd事件以异常终止
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:
PHP Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in /vagrant/app/console on line 16
.
-
应用程序/控制台的内容未更改
-
我试过删除并重新创建bootstrap.cache没有变化
-
在我的供应商目录中,我确实说过
ArgvInput
类
关于问题是什么的任何想法?
1 回答
问题是因为我的
composer.json
有线因此它更新到最新版本(编写本文时为5.x),这与symfony 2.7及以下项目的文件结构不兼容
相反,我已经把线
现在它工作正常
这里有更多解释
https://github.com/sensiolabs/SensioDistributionBundle/issues/243