Skip to content

Commit 73e299c

Browse files
committed
minor #9337 Update service_container.rst (ilmoralito, javiereguiluz)
This PR was submitted for the 4.0 branch but it was merged into the 3.4 branch instead (closes #9337). Discussion ---------- Update service_container.rst Since 6 use `$message = (new \Swift_Message('message'))` instead of `$message = \Swift_Message::newInstance()` Please check https://github.com/swiftmailer/swiftmailer/blob/master/CHANGES#L24 and https://swiftmailer.symfony.com/docs/introduction.html#basic-usage Commits ------- e4ba061 Fixed the code 17da22a Update service_container.rst
2 parents 70360ee + e4ba061 commit 73e299c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service_container.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ made. To do that, you create a new class::
364364
{
365365
$happyMessage = $this->messageGenerator->getHappyMessage();
366366

367-
$message = \Swift_Message::newInstance()
368-
->setSubject('Site update just happened!')
367+
$message = (new \Swift_Message('Site update just happened!))
369368
->setFrom('admin@example.com')
370369
->setTo('manager@example.com')
371370
->addPart(

0 commit comments

Comments
 (0)