Symfony2 更新 bootstrap.php.cache [英] Symfony2 updating bootstrap.php.cache
问题描述
最近我从 symfony.com 上提供的 BETA 版本开始了一个在 Symfony2 中的项目
Recently I started a project in Symfony2 from the BETA version available on symfony.com
过了一段时间,我需要升级到master分支,所以我从github中检索了最新的并在vendor/symfony中切换.
After a while, I needed to upgrade to the master branch, so I retrieved the latest from github and switched it in vendor/symfony.
但是我的bootstrap.php.cache和bootstrap_cache.php.cache都没有升级,导致报错.
However, my bootstrap.php.cache and bootstrap_cache.php.cache are not upgraded, which has generated errors.
我尝试清除 symfony 缓存,但无济于事.
I tried clearing the symfony cache, to no avail.
如何更新这些文件以符合我的项目?
How can I update these files to correspond to my project?
推荐答案
在 2.0 版本中原始文件在这里:
In the 2.0 release the original file is here:
./vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
在 2.3 版中,文件在这里
in release 2.3 the file is here
vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
这篇关于Symfony2 更新 bootstrap.php.cache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!