-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Error bootstrap.php.cache after 3.2 upgrade #20753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you call addClassesToCompile in your bundle? Did you put AppKernel in the list? Then that may be the issue. |
Hi! I've gotten similar problem with one of my applications, so I was wondering what makes it different from another, which worked perfectly fine after upgrade to 3.2
so after I changed |
This could be solved by #20668 ) |
This PR was merged into the 5.0.x-dev branch. Discussion ---------- Dont inline Kernel when already there As spotted in symfony/symfony#20753 (comment) `Kernel` inlining is not compatible with old `"files": ["app/AppKernel.php"]` entries in composer.json Commits ------- 7046e6e Dont inline Kernel when already there
HI,
I have updated to 3.2 but I get the following error:
PHP Fatal error: Cannot redeclare class Symfony\\Component\\HttpKernel\\HttpKernelInterface in /var/www/application/var/bootstrap.php.cache on line 1309
I cleared the cache but without success.
When I removed the bootstrap.php.cache file everything worked as expected. After the composer update the bootstrap file was regenerated with the same error being present.
line 1309 to 1339:
The text was updated successfully, but these errors were encountered: