title: Troubleshooting "require_once(../bootstrap.php.cache): failed to open stream: No such file or directory"
body: <p>I am trying to redeploy a Symfony 2.1x project I have been working on and <code>app_dev.php</code> is failing because it can't find <code>app/bootstrap.php.cache</code>. This file is omitted from the project's git repository because I used Symfony2's recommend <code>.gitignore</code> file:</p>
  
  <pre><code># .gitignore
  /app/bootstrap*
  </code></pre>
  
  <p>Am I correct in thinking that <code>app/bootstrap.php.cache</code> is generated during the <code>$ php composer.phar install</code> process? If this is the case then I will include for you my <code>composer.json</code>:</p>
  
  <pre><code>// composer.json
  {
      "name": "symfony/framework-standard-edition",
      "description": "The \"Symfony Standard Edition\" distribution",
      "autoload": {
          "psr-0": { "": "src/" }
      },
      "require": {
          "php": "&gt;=5.3.3",
          "symfony/symfony": "2.1.*",
          "doctrine/orm": "2.2.*",
          "doctrine/doctrine-bundle": "dev-master",
          "twig/extensions": "dev-master",
          "symfony/assetic-bundle": "dev-master",
          "symfony/swiftmailer-bundle": "dev-master",
          "symfony/monolog-bundle": "dev-master",
          "sensio/distribution-bundle": "dev-master",
          "sensio/framework-extra-bundle": "dev-master",
          "sensio/generator-bundle": "dev-master",
          "jms/security-extra-bundle": "1.1.*",
          "jms/di-extra-bundle": "1.0.*",
          "ddeboer/guzzle-bundle": "dev-master",
          "mopa/bootstrap-bundle": "dev-master",
          "twitter/bootstrap": "master",
          "knplabs/knp-paginator-bundle": "dev-master",
          "knplabs/knp-menu-bundle": "dev-master",
          "craue/formflow-bundle": "dev-master"
      },
      "repositories": [
          {
              "type": "package",
              "package": {
                  "version": "master",
                  "name": "twitter/bootstrap",
                  "source": {
                      "url": "https://github.com/twitter/bootstrap.git",
                      "type": "git",
                      "reference": "master"
                  },
                  "dist": {
                      "url": "https://github.com/twitter/bootstrap/zipball/master",
                      "type": "zip"
                  }
              }
          }
      ],
      "scripts": {
          "post-install-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ],
          "post-update-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ],
          "post-install-cmd": [
              "Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
          ],
          "post-update-cmd": [
              "Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
          ]
      },
      "config": {
          "bin-dir": "bin"
      },
      "minimum-stability": "dev",
      "extra": {
          "symfony-app-dir": "app",
          "symfony-web-dir": "web"
      }
  }
  </code></pre>
  
  <p>How can I generate <code>bootstrap.php.cache</code>?</p>