-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathHeaderLoader.php
49 lines (45 loc) · 2.41 KB
/
HeaderLoader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @see https://github.com/laminas/laminas-mail for the canonical source repository
* @copyright https://github.com/laminas/laminas-mail/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-mail/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Mail\Header;
use Laminas\Loader\PluginClassLoader;
/**
* Plugin Class Loader implementation for HTTP headers
*/
class HeaderLoader extends PluginClassLoader
{
/**
* @var array Pre-aliased Header plugins
*/
protected $plugins = [
'bcc' => 'Laminas\Mail\Header\Bcc',
'cc' => 'Laminas\Mail\Header\Cc',
'contentdisposition' => 'Laminas\Mail\Header\ContentDisposition',
'content_disposition' => 'Laminas\Mail\Header\ContentDisposition',
'content-disposition' => 'Laminas\Mail\Header\ContentDisposition',
'contenttype' => 'Laminas\Mail\Header\ContentType',
'content_type' => 'Laminas\Mail\Header\ContentType',
'content-type' => 'Laminas\Mail\Header\ContentType',
'contenttransferencoding' => 'Laminas\Mail\Header\ContentTransferEncoding',
'content_transfer_encoding' => 'Laminas\Mail\Header\ContentTransferEncoding',
'content-transfer-encoding' => 'Laminas\Mail\Header\ContentTransferEncoding',
'date' => 'Laminas\Mail\Header\Date',
'from' => 'Laminas\Mail\Header\From',
'in-reply-to' => 'Laminas\Mail\Header\InReplyTo',
'message-id' => 'Laminas\Mail\Header\MessageId',
'mimeversion' => 'Laminas\Mail\Header\MimeVersion',
'mime_version' => 'Laminas\Mail\Header\MimeVersion',
'mime-version' => 'Laminas\Mail\Header\MimeVersion',
'received' => 'Laminas\Mail\Header\Received',
'references' => 'Laminas\Mail\Header\References',
'replyto' => 'Laminas\Mail\Header\ReplyTo',
'reply_to' => 'Laminas\Mail\Header\ReplyTo',
'reply-to' => 'Laminas\Mail\Header\ReplyTo',
'sender' => 'Laminas\Mail\Header\Sender',
'subject' => 'Laminas\Mail\Header\Subject',
'to' => 'Laminas\Mail\Header\To',
];
}