Skip to content

Commit cdcb5c8

Browse files
committed
fix flash message generation
1 parent 7314d35 commit cdcb5c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

service_container.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,6 @@ made. To do that, you create a new class::
366366
'Someone just updated the site. We told them: '.$happyMessage
367367
);
368368
$this->mailer->send($message);
369-
370-
return $happyMessage;
371369
}
372370
}
373371

@@ -381,8 +379,8 @@ you can use the service immediately::
381379
{
382380
// ...
383381

384-
$message = $siteUpdateManager->notifyOfSiteUpdate();
385-
$this->addFlash('success', $message);
382+
$siteUpdateManager->notifyOfSiteUpdate();
383+
$this->addFlash('success', 'Notification mail was sent successfully.');
386384
// ...
387385
}
388386

0 commit comments

Comments
 (0)