Skip to content

Commit 4c4b0ca

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

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+
Support for creating absolute URLs with the ``asset()`` function will
143+
be dropped in Symfony 3.0. Starting with Symfony 2.7, you should use
144+
the ``absolute_url()`` function instead.
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)