8000 minor #11538 [Mime] Use constants instead of numbers to set email pri… · symfony/symfony-docs@9864f0f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9864f0f

Browse files
committed
minor #11538 [Mime] Use constants instead of numbers to set email priority (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #11538). Discussion ---------- [Mime] Use constants instead of numbers to set email priority Today I learned about these constants. I think it makes code more readable. Commits ------- 632d8e1 [Mime] Use constants instead of numbers to set email priority
2 parents 0fc2bbb + 632d8e1 commit 9864f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ methods to compose the entire email message::
5050
->cc('bar@example.com')
5151
->bcc('baz@example.com')
5252
->replyTo('fabien@symfony.com')
53-
->priority(1)
53+
->priority(Email::PRIORITY_HIGH)
5454
->subject('Important Notification')
5555
->text('Lorem ipsum...')
5656
->html('<h1>Lorem ipsum</h1> <p>...</p>')

0 commit comments

Comments
 (0)
0