Skip to content

Commit adc073e

Browse files
feature #36129 [HttpFoundation][HttpKernel][Security] Improve UnexpectedSessionUsageException backtrace (mtarld)
This PR was merged into the 5.1-dev branch. Discussion ---------- [HttpFoundation][HttpKernel][Security] Improve UnexpectedSessionUsageException backtrace | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | | License | MIT | Doc PR | Improve `UnexceptedSessionUsageException` backtrace so that it leads to the place in the userland where it was told to use session. Commits ------- 1e1d332c7c Improve UnexcpectedSessionUsageException backtrace
2 parents dbd1f82 + 0fae846 commit adc073e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Resources/config/session.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
<service id="session" class="Symfony\Component\HttpFoundation\Session\Session" public="true">
1515
<argument type="service" id="session.storage" />
16+
<argument>null</argument> <!-- AttributeBagInterface -->
17+
<argument>null</argument> <!-- FlashBagInterface -->
18+
<argument type="collection">
19+
<argument type="service" id="session_listener" />
20+
<argument>onSessionUsage</argument>
21+
</argument>
1622
</service>
1723

1824
<service id="Symfony\Component\HttpFoundation\Session\SessionInterface" alias="session" />

0 commit comments

Comments
 (0)