[英]Interface 'Symfony\Component\HttpKernel\HttpKernelInterface' not found
After upgrading from Symfony 2.3 to 2.8 I get the following error: 从Symfony 2.3升级到2.8后,出现以下错误:
Fatal error: Interface 'Symfony\\Component\\HttpKernel\\HttpKernelInterface' not found in app/bootstrap.php.cache on line 2629
致命错误:在第2629行的app / bootstrap.php.cache中找不到接口'Symfony \\ Component \\ HttpKernel \\ HttpKernelInterface'
Already tried removing the vendor folder and doing a composer install. 已经尝试删除供应商文件夹并进行作曲家安装。
Any ideas? 有任何想法吗?
Have you tried removing cached code? 您是否尝试过删除缓存的代码? It seems like you've procompiled your application into one file
bootstrap.php.cache
. 看来您已经将应用程序编译为一个文件
bootstrap.php.cache
。 Have you tried removing it. 您是否尝试过删除它。
Otherwise it is always a good idea to do two of the following commands: 否则,最好执行以下两个命令:
php composer.phar dump-autoload
- update autolod file php composer.phar dump-autoload
更新自动文件
php app/console cache:clear
- removes cache php app/console cache:clear
-删除缓存
I had to add the following line to web/app.php and web/app_dev.php: 我必须将以下行添加到web / app.php和web / app_dev.php:
$loader = require __DIR__.'/../app/autoload.php';
And also update app/console. 并更新应用程序/控制台。
Found this by comparing my files with a fresh install of Symfony 2.8 通过将我的文件与全新安装的Symfony 2.8进行比较发现了这一点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.