Skip to content

Commit a6db95f

Browse files
committed
bug #11688 Update mailer.rst - fix twig path configuration (andyexeter)
This PR was merged into the 4.3 branch. Discussion ---------- Update mailer.rst - fix twig path configuration Same problem as #11673 but I missed this one! When defining twig paths the path must be the key and the namespace must be the value. Commits ------- f59ba5d Update mailer.rst
2 parents 8458f40 + f59ba5d commit a6db95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ image files as usual. First, to simplify things, define a Twig namespace called
376376
377377
paths:
378378
# point this wherever your images live
379-
images: '%kernel.project_dir%/assets/images'
379+
'%kernel.project_dir%/assets/images': images
380380
381381
Now, use the special ``email.image()`` Twig helper to embed the images inside
382382
the email contents:

0 commit comments

Comments
 (0)