-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] Allow attachment name to be set for inline images #60163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can this be tested?
@nicolas-grekas I could write a test case for |
The proposal looks good to me. I'd say it just misses some tests + a line in the CHANGELOG file of the bridge. |
f7281a8
to
eda234a
Compare
@nicolas-grekas I'm not too happy with hard-coding the strings to test like that because of how line breaks are handled, but I guess the intention is clear and they should be easy to maintain if something changes. The Doctrine tests failing are hopefully not related to my changes? |
Thank you @aleho. |
Using a recommended setup attaching images from Twig would normally result in attachment names like
@assets/img/file.png
which might not be a good file name to expose to email clients. This allows the name to be specified, analogous toattach
in the same wrapper.