-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from magento-engcom/67-eliminate-zend-mime-usage
Eliminate usage of Zend_Mime from Magento 2 Open Source
- Loading branch information
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Framework\HTTP; | ||
|
||
/** | ||
* Support class for MultiPart Mime Messages | ||
*/ | ||
class Mime | ||
{ | ||
const TYPE_OCTETSTREAM = 'application/octet-stream'; | ||
const TYPE_TEXT = 'text/plain'; | ||
const TYPE_HTML = 'text/html'; | ||
const ENCODING_7BIT = '7bit'; | ||
const ENCODING_8BIT = '8bit'; | ||
const ENCODING_QUOTEDPRINTABLE = 'quoted-printable'; | ||
const ENCODING_BASE64 = 'base64'; | ||
const DISPOSITION_ATTACHMENT = 'attachment'; | ||
const DISPOSITION_INLINE = 'inline'; | ||
const LINELENGTH = 72; | ||
const LINEEND = "\n"; | ||
const MULTIPART_ALTERNATIVE = 'multipart/alternative'; | ||
const MULTIPART_MIXED = 'multipart/mixed'; | ||
const MULTIPART_RELATED = 'multipart/related'; | ||
} |