App / bootstrap.php.cache: Could not open stream: no such file or directory

After the clone project from github, I got the following error:

Warning: require_once (C: \ OpenServer \ domains \ MyBlog.test \ web /../ app / bootstrap.php.cache): could not open the stream: there is no such file or directory in C: \ OpenServer \ domains \ MyBlog.test \ web \ app_dev.php on line 20

Fatal error: require_once (): Could not open window "C: \ OpenServer \ domains \ MyBlog.test \ web /../ app / bootstrap.php.cache" (include_path = '; c: / openserver / modules / php / PHP-5.5; c: /openserver/modules/php/PHP-5.5/PEAR/pear ') in C: \ OpenServer \ domains \ MyBlog.test \ web \ app_dev.php on line 20

Unfortunately, in the .gitignore file, I based the following note:

/app/bootstrap.php.cache /var/bootstrap.php.cache /bin/* !bin/console !bin/symfony_requirements 

So how to solve this problem?

I am running the php composer.phar update command, but that did not help.

+5
source share
1 answer

You probably need to run composer to create a bootstrap and vendor download file.

In your composer.json you will see the bootstrap boot command that will be executed for you.

 "post-install-cmd": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap" ], 
+15
source

All Articles