Skip to content

Commit bc880d0

Browse files
committed
add missing versionadded directive
1 parent 90745db commit bc880d0

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)