Skip to content

Commit a0b06ae

Browse files
committedOct 14, 2015
Merge remote-tracking branch 'origin/master'
* origin/master: (93 commits) [#5623] don't configure default constraint message [Validator] added BIC validator Update links Added September changelog Added September changelog Misspelling [#5689] Some minor syntax fixes [DI] Add some documentation for the deprecation feature Info about implicit session start Revert "[#5771] remove another Response constant" Revert "Remove not existing response constant" [#5771] remove another Response constant [#5761] add versionadded directive Fixed two typos Remember me, Renamed key to secret translations have been removed from symfony.com Remove not existing response constant Update HttpFoundation note after recent changes in routing component [#5584] language tweak and XML config fix Add DebugBundle config reference ...
2 parents 9f8d766 + b13593e commit a0b06ae

File tree

111 files changed

+1439
-1070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1439
-1070
lines changed
 

‎_theme/_templates/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<div id="sidebar" class="col-sm-3">
4545
<div id="sidebar-content">
4646
<div id="demo-warning">
47-
<h4>This is a demo</h4>
48-
<p>This is a demo provided by platform.sh.<br>
49-
<a href="http://symfony.com/doc/current/{{ pagename }}">Visit on symfony.com</a>.</p>
47+
<h4>Pull request build</h4>
48+
<p>Each pull request of the Symfony Documentation is automatically deployed and hosted on <a href="https://platform.sh">Platform.sh</a>.<br>
49+
View this page on <a href="https://symfony.com/doc/current/{{ pagename }}">symfony.com</a>.</p>
5050
</div>
5151

5252
{%- include "globaltoc.html" %}

‎book/controller.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ session.
619619
Flash Messages
620620
~~~~~~~~~~~~~~
621621

622-
You can also store small messages that will be stored on the user's session
623-
for exactly one additional request. This is useful when processing a form:
622+
You can also store small messages that will be stored on the user's session.
623+
This is useful when processing a form:
624624
you want to redirect and have a special message shown on the *next* page.
625625
These types of messages are called "flash" messages.
626626

@@ -675,9 +675,17 @@ the ``notice`` message:
675675
</div>
676676
<?php endforeach ?>
677677

678-
By design, flash messages are meant to live for exactly one request (they're
679-
"gone in a flash"). They're designed to be used across redirects exactly as
680-
you've done in this example.
678+
.. note::
679+
680+
By design, flash messages are meant to be processed exactly once. This means
681+
that they vanish from the session automatically when they are retrieved from
682+
the flash bag by calling the ``get()`` method.
683+
684+
.. tip::
685+
686+
You can use the
687+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface::peek`
688+
method instead to retrieve the message while keeping it in the bag.
681689

682690
.. index::
683691
single: Controller; Response object

0 commit comments

Comments
 (0)
Please sign in to comment.