Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't generate bootstrap file in Symfony 2.1.1

I've got an application written for Symfony 2.0 and I've started migrating it into Symfony 2.1. I've successfully installed all the dependencies with composer but a script fails...

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.  

Any clue? I'm completely lost and I've googled it but I've only found a post in a forum with people having the same problem as me...

like image 441
Marcos García Avatar asked Sep 14 '12 10:09

Marcos García


1 Answers

The problem is that the manual is not clear. It tells you to execute composer.phar install before telling that symfony-standard files need to be replaced.

So now you have to replace

  • AppKernel.php,
  • AppCache.php and
  • autoload.php (and remove odd files)

and update your config.yml file with the given tips.

like image 118
Marcos García Avatar answered Oct 04 '22 22:10

Marcos García