Skip to content

Commit 98ebace

Browse files
committed
Tweak
1 parent b6672e4 commit 98ebace

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

session.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ controllers if you type-hint an argument with
160160

161161
.. deprecated:: 5.3
162162

163-
The ``SessionInterface`` and ``session`` service are deprecated since
164-
Symfony 5.3. Inject a request stack instead.
163+
The ``SessionInterface`` and ``session`` service were deprecated in
164+
Symfony 5.3. Instead, inject the ``RequestStack`` service to get the session
165+
object of the current request.
165166

166167
Stored attributes remain in the session for the remainder of that user's session.
167168
By default, session attributes are key-value pairs managed with the

0 commit comments

Comments
 (0)