Skip to content

Commit 7e54e23

Browse files
committed
bug #19771 Update session.rst (marcagrio)
This PR was submitted for the 7.0 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- Update session.rst Replaced incorrect "notice" key with proper "warning" key. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- f3304d8 Update session.rst
2 parents 568924e + f3304d8 commit 7e54e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: session.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ For example, imagine you're processing a :doc:`form </forms>` submission::
176176
$flashes->add('error', 'Another error');
177177
178178
After processing the request, the controller sets a flash message in the session
179-
and then redirects. The message key (``notice`` in this example) can be anything:
179+
and then redirects. The message key (``warning`` and ``error`` in this example) can be anything:
180180
you'll use this key to retrieve the message.
181181

182182
In the template of the next page (or even better, in your base layout template),

0 commit comments

Comments
 (0)