Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Mime] Don't require passing the encoder name to TextPart #58764

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

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

javiereguiluz
Copy link
Member

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

While preparing this blog post: https://symfony.com/blog/new-in-symfony-7-2-mime-improvements

I realized that it's unnecessary to pass the encoder name as the first argument of TextPart::addEncoder() because the ContentEncoderInterface already requires defining a getName() method.

@javiereguiluz javiereguiluz added this to the 7.2 milestone Nov 5, 2024
@carsonbot carsonbot changed the title [Mime] Don't require passig the encoder name to TextPart [Mime] Don't require passig the encoder name to TextPart Nov 5, 2024
@OskarStark OskarStark changed the title [Mime] Don't require passig the encoder name to TextPart [Mime] Don't require passig the encoder name to TextPart Nov 5, 2024
@OskarStark OskarStark changed the title [Mime] Don't require passig the encoder name to TextPart [Mime] Don't require passing the encoder name to TextPart Nov 5, 2024
src/Symfony/Component/Mime/Part/TextPart.php Show resolved Hide resolved
@nicolas-grekas
Copy link
Member

Thank you @javiereguiluz.

@nicolas-grekas nicolas-grekas merged commit 3b5f623 into symfony:7.2 Nov 5, 2024
9 of 10 checks passed
@javiereguiluz javiereguiluz deleted the mime_encoder branch November 5, 2024 10:35
@fabpot fabpot mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.