You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#58327 [FrameworkBundle] Do not access the container when the kernel is shut down (jderusse)
This PR was merged into the 5.4 branch.
Discussion
----------
[FrameworkBundle] Do not access the container when the kernel is shut down
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
symfony#58240 play with the container after the kernel was shut down.
This is an issue when the kernel performs a cleanup operation. For instance, the `@Nyholm` TestBundle [deletes cache files](https://github.com/SymfonyTest/symfony-bundle-test/blob/241bf0e2f00f28f7327113570ab20e24a5828829/src/TestKernel.php#L184-L199) as a result, the service is not accessible anymore and triggers errors.
This PR move the call to `container->get` before `kernel::shutdown`
Commits
-------
e68f88c [FrameworkBundle] Do not access the container when the kernel is shut down
0 commit comments