Skip to content

Commit

Permalink
minor #5542 [Cookbook][Email] add missing versionadded directive (xab…
Browse files Browse the repository at this point in the history
…buh)

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
  • Loading branch information
weaverryan committed Jul 25, 2015
2 parents 3905acb + bc880d0 commit 3c1d229
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbook/email/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ template might look something like this:
{# Makes an absolute URL to the /images/logo.png file #}
<img src="{{ absolute_url(asset('images/logo.png')) }}"

.. versionadded:: 2.7
The ``absolute_url()`` function was introduced in Symfony 2.7. Prior
to 2.7, the ``asset()`` function has an argument to enable returning
an absolute URL.

The ``$message`` object supports many more options, such as including attachments,
adding HTML content, and much more. Fortunately, Swift Mailer covers the topic
of `Creating Messages`_ in great detail in its documentation.
Expand Down

0 comments on commit 3c1d229

Please sign in to comment.