ylliX - Online Advertising Network How to manually generate bootstrap.php.cache using Symfony 2? - Yet Another Programmer's Blog

How to manually generate bootstrap.php.cache using Symfony 2?

Well, the easiest way is to use

composer.phar update

but if you don’t want to update all bundles and waste an hour of your time, you can use:

php vendor\sensio\distribution-bundle\Sensio\Bundle\DistributionBundle\Resources\bin\build_bootstrap.php <app>

where <app> is placeholder for you app dir, like “app/frontend” or “app/backend”
in case you don’t have build_bootstrap.php on path above (it works for Symfony 2.7.x) just search for it inside vendor\sensio\distribution-bundle\Sensio\Bundle\DistributionBundle

2 thoughts on “How to manually generate bootstrap.php.cache using Symfony 2?

  1. This command only builds cache for Symfony core files (I suppose Components).
    But what if I want to build a cache for all vendor libraries. Can you please show me how do do that?

Leave a Reply