6

我有一个为 Symfony 2.0 编写的应用程序,我已经开始将它迁移到 Symfony 2.1 中。我已经使用 composer 成功安装了所有依赖项,但是脚本失败了......

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-update-cmd event terminated with an exception



  [RuntimeException]                                     
  An error occurred when generating the bootstrap file.  

有什么线索吗?我完全迷路了,我用谷歌搜索了它,但我只在一个论坛上找到了一个帖子,里面有和我有同样问题的人......

4

1 回答 1

5

问题是手册不明确。它告诉你composer.phar install在告诉 symfony 标准文件需要被替换之前执行。

所以现在你必须更换

  • AppKernel.php,
  • AppCache.php
  • autoload.php(并删除奇数文件)

config.yml并使用给定的提示更新您的文件。

于 2012-09-18T09:35:40.583 回答