Skip to content

Commit 40a2a18

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: Fix typo in the Twig article Removed some whitespace Reworded the tip contents Add Tip to using MailHog during developement Added a small note about dynamic role hierarchies
2 parents 790d672 + b569015 commit 40a2a18

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

email/dev_environment.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,12 @@ you to open the report with details of the sent emails.
246246
by the submit URL used on the previous request (e.g. ``/contact/handle``).
247247
The profiler's search feature allows you to load the profiler information
248248
for any past requests.
249+
250+
.. tip::
251+
252+
In addition to the features provided by Symfony, there are applications that
253+
can help you test emails during application development, like `MailCatcher`_
254+
and `MailHog`_.
255+
256+
.. _`MailCatcher`: https://github.com/sj26/mailcatcher
257+
.. _`MailHog`: https://github.com/mailhog/MailHog

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ format
128128
The format used by the ``date`` filter to display values when no specific format
129129
is passed as argument.
130130

131-
internal_format
131+
interval_format
132132
...............
133133

134134
**type**: ``string`` **default**: ``%d days``

security.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,13 @@ In the above configuration, users with ``ROLE_ADMIN`` role will also have the
12591259
``ROLE_USER`` role. The ``ROLE_SUPER_ADMIN`` role has ``ROLE_ADMIN``, ``ROLE_ALLOWED_TO_SWITCH``
12601260
and ``ROLE_USER`` (inherited from ``ROLE_ADMIN``).
12611261

1262+
.. note::
1263+
1264+
The value of the ``role_hierarchy`` option is defined statically, so you
1265+
can't for example store the role hierarchy in a database. If you need that,
1266+
create a custom :doc:`security voter </security/voters>` that looks for the
1267+
user roles in the database.
1268+
12621269
Final Words
12631270
-----------
12641271

0 commit comments

Comments
 (0)