Skip to content

Commit b73e3f4

Browse files
committed
minor #6418 fix spelling of the flashBag() method (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- fix spelling of the flashBag() method Commits ------- 1da9747 fix spelling of the flashBag() method
2 parents 6a55732 + 1da9747 commit b73e3f4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ read any flash messages from the session:
671671

672672
.. code-block:: html+twig
673673

674-
{% for flash_message in app.session.flashbag.get('notice') %}
674+
{% for flash_message in app.session.flashBag.get('notice') %}
675675
<div class="flash-notice">
676676
{{ flash_message }}
677677
</div>

cookbook/session/avoid_session_start.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ that a session is *always* started:
1515

1616
.. code-block:: html+twig
1717

18-
{% for flashMessage in app.session.flashbag.get('notice') %}
18+
{% for flashMessage in app.session.flashBag.get('notice') %}
1919
<div class="flash-notice">
2020
{{ flashMessage }}
2121
</div>
2222
{% endfor %}
2323

2424
Even if the user is not logged in and even if you haven't created any flash messages,
25-
just calling the ``get()`` (or even ``has()``) method of the ``flashbag`` will
25+
just calling the ``get()`` (or even ``has()``) method of the ``flashBag`` will
2626
start a session. This may hurt your application performance because all users will
2727
receive a session cookie. To avoid this behavior, add a check before trying to
2828
access the flash messages:
2929

3030
.. code-block:: html+twig
3131

3232
{% if app.request.hasPreviousSession %}
33-
{% for flashMessage in app.session.flashbag.get('notice') %}
33+
{% for flashMessage in app.session.flashBag.get('notice') %}
3434
<div class="flash-notice">
3535
{{ flashMessage }}
3636
</div>

quick_tour/the_controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ And you can display the flash message in the template like this:
331331

332332
.. code-block:: html+twig
333333

334-
{% for flashMessage in app.session.flashbag.get('notice') %}
334+
{% for flashMessage in app.session.flashBag.get('notice') %}
335335
<div class="flash-notice">
336336
{{ flashMessage }}
337337
</div>
@@ -344,4 +344,4 @@ That's all there is to it and I'm not even sure you'll have spent the full
344344
10 minutes. You were briefly introduced to bundles in the first part and
345345
all the features you've learned about so far are part of the core FrameworkBundle.
346346
But thanks to bundles, everything in Symfony can be extended or replaced.
347-
That's the topic of the :doc:`next part of this tutorial <the_architecture>`.
347+
That's the topic of the :doc:`next part of this tutorial <the_architecture>`.

0 commit comments

Comments
 (0)