Skip to content

[DI] fix flash message generation #8339

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

Merged
merged 2 commits into from
Jan 4, 2018
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 3, 2017

@@ -366,8 +366,6 @@ made. To do that, you create a new class::
'Someone just updated the site. We told them: '.$happyMessage
);
$this->mailer->send($message);
Copy link
Member

Choose a reason for hiding this comment

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

What about returning return $this->mailer->send($message) > 0; and only adding a success flash message if it was indeed succesfull ?

@javiereguiluz javiereguiluz merged commit cba0478 into symfony:3.3 Jan 4, 2018
javiereguiluz added a commit that referenced this pull request Jan 4, 2018
This PR was merged into the 3.3 branch.

Discussion
----------

[DI] fix flash message generation

see #8224 (comment)

Commits
-------

cba0478 Refactored the code
cdcb5c8 fix flash message generation
@xabbuh xabbuh deleted the pr-8224 branch January 4, 2018 13:18
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.

4 participants