Symfony missing bootstrap.php.cache
Search for "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
your composer.json
if it exists there probably you just need to run 'composer install',
or easiest solution is try to run on sf >= 3
php vendor/sensio/distribution-bundle/Resources/bin/build_bootstrap.php
Execute following command:
sudo php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
A late comment but :
The boostrap.php.cache
file is generated by a hooks the composer.json scripts section. More specifically :
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
When running the composer install with the --no-scripts
those hooks are not executed.
However, this file is being generated for performance. As is not as relevant to later versions of PHP. You could simply remove it.
- Remove the file
- Edit the index.php or app.php to remove the require bootstrap.php.cache
- Removing the hook from the composer.json file