从 github克隆项目后,我得到了下一个错误: Warning: require_once(C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache): failed to open stream: No such file or directory in C:\OpenServer\domains\MyBlog.test\web\app_
Warning: require_once(C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache): failed to open stream: No such file or directory in C:\OpenServer\domains\MyBlog.test\web\app_dev.php on line 20
Fatal error: require_once(): Failed opening required ‘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
不幸的是在.gitignore文件中,我创建了下一个注释:
/app/bootstrap.php.cache /var/bootstrap.php.cache /bin/* !bin/console !bin/symfony_requirements
那么,如何解决这个问题呢?
我执行php composer.phar更新命令,但它没有帮助.
您可能需要运行 composer来生成引导程序文件并下载供应商.在您的composer.json中,您将看到为您执行的构建引导程序命令.
"post-install-cmd": [ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap" ],