Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworded the explanation about flash messages #5808

Merged
merged 2 commits into from
Nov 5, 2015

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? no
Applies to all
Fixed tickets -

As any reword, most of its changes are debatable. However, I think that the reword is better than the current explanation in one thing: the feature that makes flash message self-vanish as soon as they are retrieved is essential to understand their behavior. In my opinion is wrong to explain that in a .. note admonition at the end of the section.

By design, flash messages are meant to be processed exactly once. This means
that they vanish from the session automatically when they are retrieved from
the flash bag by calling the ``get()`` method.
It's common to use ``notice``, ``warning`` and ``error` as the keys of the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing second backtick after "error"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks.

By design, flash messages are meant to be processed exactly once. This means
that they vanish from the session automatically when they are retrieved from
the flash bag by calling the ``get()`` method.
It's common to use ``notice``, ``warning`` and ``error`` as the keys of the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about success ?

@stof
Copy link
Member

stof commented Oct 23, 2015

@javiereguiluz I suggest you to also update the Twig code snippet to follow the Twig coding standards (snake_case variable names, so flash_message rather than flashMessage)

@weaverryan weaverryan merged commit e38b037 into symfony:2.3 Nov 5, 2015
weaverryan added a commit that referenced this pull request Nov 5, 2015
…luz)

This PR was merged into the 2.3 branch.

Discussion
----------

Reworded the explanation about flash messages

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | no
| Applies to    | all
| Fixed tickets | -

As any reword, most of its changes are debatable. However, I think that the reword is better than the current explanation in one thing: the feature that makes flash message self-vanish as soon as they are retrieved is essential to understand their behavior. In my opinion is wrong to explain that in a `.. note` admonition at the end of the section.

Commits
-------

e38b037 Fixed a RST syntax issue
747f10b Reworded the explanation about flash messages
weaverryan added a commit that referenced this pull request Nov 5, 2015
@weaverryan
Copy link
Member

Thanks Javier! I merged this in with a few suggested tweaks... and of course I re-read your improvements and improved them (subjectively) even further :)

@javiereguiluz javiereguiluz deleted the tweak_flash_messages branch May 24, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants