Skip to content

[FrameworkBundle] Do not access the container when the kernel is shut down#58327

Merged
xabbuh merged 1 commit intosymfony:5.4from
jderusse:reset-shutdown
Sep 20, 2024
Merged

[FrameworkBundle] Do not access the container when the kernel is shut down#58327
xabbuh merged 1 commit intosymfony:5.4from
jderusse:reset-shutdown

Conversation

@jderusse
Copy link
Copy Markdown
Member

@jderusse jderusse commented Sep 20, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

#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 as a result, the service is not accessible anymore and triggers errors.

This PR move the call to container->get before kernel::shutdown

@OskarStark
Copy link
Copy Markdown
Contributor

cc @HypeMC

@xabbuh
Copy link
Copy Markdown
Member

xabbuh commented Sep 20, 2024

Thank you @jderusse.

@xabbuh xabbuh merged commit 25c5f9c into symfony:5.4 Sep 20, 2024
This was referenced Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants