Commit 34d01c1
committed
minor symfony#60934 [HttpKernel] Avoid memory leaks cache attribute, profiler listener (andrew-demb)
This PR was squashed before being merged into the 7.4 branch.
Discussion
----------
[HttpKernel] Avoid memory leaks cache attribute, profiler listener
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes <!-- if yes, also update src/**/CHANGELOG.md -->
| Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md -->
| Issues |
| License | MIT
<!--
🛠️ Replace this text with a concise explanation of your change:
- What it does and why it's needed
- A simple example of how it works (include PHP, YAML, etc.)
- If it modifies existing behavior, include a before/after comparison
Contributor guidelines:
- ✅ Add tests and ensure they pass
- 🐞 Bug fixes must target the **lowest maintained** branch where they apply
https://symfony.com/releases#maintained-symfony-branches
- ✨ New features and deprecations must target the **feature** branch
and must add an entry to the changelog file of the patched component:
https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- 🔒 Do not break backward compatibility:
https://symfony.com/bc
-->
For the current moment, if the `onKernelTerminate` / `onKernelResponse` methods won't be called, the listener's state won't be reset between requests.
~~Please let me know if this should be considered as a new feature - to retarget PR to the 7.3 branch~~
~~Similar to PR symfony#60933~~
Commits
-------
4e203f0 [HttpKernel] Avoid memory leaks cache attribute, profiler listenerFile tree
4 files changed
+14
-0
lines changed- src/Symfony
- Bundle/FrameworkBundle/Resources/config
- Component/HttpKernel/EventListener
4 files changed
+14
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
0 commit comments