Skip to content

Commit 3c1d229

Browse files
committed
minor #5542 [Cookbook][Email] add missing versionadded directive (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [Cookbook][Email] add missing versionadded directive | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7+ | Fixed tickets | #4918 Commits ------- bc880d0 add missing versionadded directive
2 parents 3905acb + bc880d0 commit 3c1d229

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbook/email/email.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ template might look something like this:
138138
{# Makes an absolute URL to the /images/logo.png file #}
139139
<img src="{{ absolute_url(asset('images/logo.png')) }}"
140140

141+
.. versionadded:: 2.7
142+
The ``absolute_url()`` function was introduced in Symfony 2.7. Prior
143+
to 2.7, the ``asset()`` function has an argument to enable returning
144+
an absolute URL.
145+
141146
The ``$message`` object supports many more options, such as including attachments,
142147
adding HTML content, and much more. Fortunately, Swift Mailer covers the topic
143148
of `Creating Messages`_ in great detail in its documentation.

0 commit comments

Comments
 (0)