Symfony2 post-update-cmd gives “An error occurred when generating the bootstrap file”

后端 未结 11 1103
一向
一向 2020-12-15 05:13

I am currently on Symfony2 2.3.7. When I run the composer update command. In the post-update-cmd a script is run to update symfony2. But it fails:

Script Sen         


        
11条回答
  •  爱一瞬间的悲伤
    2020-12-15 05:38

    I came across the same problem running composer.phar install with Symfony3 on Mac OS (Mavericks) with MAMP: script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-update-cmd event terminated with an exception.

    Solved by updating the PHP version from 5.4 to 5.6. As Symfony runs inside MAMP, I forgot that my system default PHP version is not supported by Symfony3. After the PHP upgrade, the composer run with success.

提交回复
热议问题