Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
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?
aleho commentedApr 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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
toeda234a
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. |
01c26aa
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
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.