|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* TechDivision\Import\Utils\SwiftMailerKeys |
|
5
|
|
|
* |
|
6
|
|
|
* NOTICE OF LICENSE |
|
7
|
|
|
* |
|
8
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
|
9
|
|
|
* that is available through the world-wide-web at this URL: |
|
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
|
11
|
|
|
* |
|
12
|
|
|
* PHP version 5 |
|
13
|
|
|
* |
|
14
|
|
|
* @author Tim Wagner <[email protected]> |
|
15
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
|
16
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
17
|
|
|
* @link https://github.com/techdivision/import |
|
18
|
|
|
* @link http://www.techdivision.com |
|
19
|
|
|
*/ |
|
20
|
|
|
|
|
21
|
|
|
namespace TechDivision\Import\Utils; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* A utility class for the swift mailer configuration keys. |
|
25
|
|
|
* |
|
26
|
|
|
* @author Tim Wagner <[email protected]> |
|
27
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
|
28
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
29
|
|
|
* @link https://github.com/techdivision/import |
|
30
|
|
|
* @link http://www.techdivision.com |
|
31
|
|
|
*/ |
|
32
|
|
|
class SwiftMailerKeys |
|
33
|
|
|
{ |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* This is a utility class, so protect it against direct |
|
37
|
|
|
* instantiation. |
|
38
|
|
|
*/ |
|
39
|
|
|
private function __construct() |
|
40
|
|
|
{ |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* This is a utility class, so protect it against cloning. |
|
45
|
|
|
* |
|
46
|
|
|
* @return void |
|
47
|
|
|
*/ |
|
48
|
|
|
private function __clone() |
|
49
|
|
|
{ |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* The key for param 'to'. |
|
54
|
|
|
* |
|
55
|
|
|
* @var string |
|
56
|
|
|
*/ |
|
57
|
|
|
const TO = 'to'; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* The key for param 'from'. |
|
61
|
|
|
* |
|
62
|
|
|
* @var string |
|
63
|
|
|
*/ |
|
64
|
|
|
const FROM = 'from'; |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* The key for param 'subject'. |
|
68
|
|
|
* |
|
69
|
|
|
* @var string |
|
70
|
|
|
*/ |
|
71
|
|
|
const SUBJECT = 'subject'; |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* The key for param 'content-type'. |
|
75
|
|
|
* |
|
76
|
|
|
* @var string |
|
77
|
|
|
*/ |
|
78
|
|
|
const CONTENT_TYPE = 'content-type'; |
|
79
|
|
|
|
|
80
|
|
|
/** |
|
81
|
|
|
* The key for param 'smtp-host'. |
|
82
|
|
|
* |
|
83
|
|
|
* @var string |
|
84
|
|
|
*/ |
|
85
|
|
|
const SMTP_HOST = 'smtp-host'; |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* The key for param 'smtp-port'. |
|
89
|
|
|
* |
|
90
|
|
|
* @var string |
|
91
|
|
|
*/ |
|
92
|
|
|
const SMTP_PORT = 'smtp-port'; |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* The key for param 'smtp-security'. |
|
96
|
|
|
* |
|
97
|
|
|
* @var string |
|
98
|
|
|
*/ |
|
99
|
|
|
const SMTP_SECURITY = 'smtp-security'; |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* The key for param 'smtp-username'. |
|
103
|
|
|
* |
|
104
|
|
|
* @var string |
|
105
|
|
|
*/ |
|
106
|
|
|
const SMTP_USERNAME = 'smtp-username'; |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* The key for param 'smtp-password'. |
|
110
|
|
|
* |
|
111
|
|
|
* @var string |
|
112
|
|
|
*/ |
|
113
|
|
|
const SMTP_PASSWORD = 'smtp-password'; |
|
114
|
|
|
|
|
115
|
|
|
/** |
|
116
|
|
|
* The key for param 'smtp-auth-mode'. |
|
117
|
|
|
* |
|
118
|
|
|
* @var string |
|
119
|
|
|
*/ |
|
120
|
|
|
const SMTP_AUTH_MODE = 'smtp-auth-mode'; |
|
121
|
|
|
} |
|
122
|
|
|
|