-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mime] Support custom encoders in mime parts #54975
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
a4bf114
to
620d561
Compare
Dunno, those test failures look not related and kind of random? |
Also can this still be squeezed into 7.1 or do we have feature freeze since we got RC1 now? (I kind of really need this :D) |
We have feature freeze for over two weeks already. I see no reason to make an exception here, sorry. |
Ah too bad, guess I'll copy stuff around till 7.2 then |
Yeah, too bad that Composer cannot install dev snapshots. Oh wait. |
f2c55db
to
1af7ac2
Compare
if ('quoted-printable' !== $encoding && 'base64' !== $encoding && '8bit' !== $encoding) { | ||
throw new InvalidArgumentException(sprintf('The encoding must be one of "quoted-printable", "base64", or "8bit" ("%s" given).', $encoding)); | ||
if (!\in_array($encoding, self::DEFAULT_ENCODERS) && !\array_key_exists($encoding, self::$encoders)) { | ||
throw new InvalidArgumentException('The encoding must be one of "quoted-printable", "base64", or "8bit". In case you are trying to use a custom encoder, please add it first.'); |
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.
Shall we just list all available encodings? I don't think the second sentence is necessary then.
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.
Sure, sounds good.
I'll change it.
1af7ac2
to
7d7e072
Compare
Thank you @KDederichs. |
Allow adding custom encoders to Text Parts