Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
Application | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | /** |
4 | * |
5 | * @package Zmsmessaging |
6 | * |
7 | */ |
8 | |
9 | namespace BO\Zmsmessaging; |
10 | |
11 | /** |
12 | * @SuppressWarnings("TooManyFields") |
13 | */ |
14 | |
15 | if (($token = getenv('ZMS_CONFIG_SECURE_TOKEN')) === false || $token === '') { |
16 | throw new \RuntimeException('ZMS_CONFIG_SECURE_TOKEN environment variable must be set'); |
17 | } |
18 | |
19 | define('ZMS_CONFIG_SECURE_TOKEN', getenv('ZMS_CONFIG_SECURE_TOKEN')); |
20 | |
21 | class Application |
22 | { |
23 | /** |
24 | * Name of the application |
25 | */ |
26 | const IDENTIFIER = 'zms'; |
27 | const MODULE_NAME = 'zmsmessaging'; |
28 | |
29 | const DEBUG = false; |
30 | |
31 | public static $now = ''; |
32 | |
33 | /* |
34 | * ----------------------------------------------------------------------- |
35 | * ZMS Messaging access |
36 | */ |
37 | |
38 | public static $messaging = null; |
39 | |
40 | /* |
41 | * ----------------------------------------------------------------------- |
42 | * ZMS API access |
43 | */ |
44 | public static $http = null; |
45 | |
46 | public static $httpUser = 'test'; |
47 | |
48 | public static $httpPassword = 'test'; |
49 | |
50 | public static $http_curl_config = array(); |
51 | |
52 | /** |
53 | * config preferences |
54 | */ |
55 | const CONFIG_SECURE_TOKEN = ZMS_CONFIG_SECURE_TOKEN; |
56 | |
57 | |
58 | /** |
59 | * HTTP url for api |
60 | */ |
61 | const HTTP_BASE_URL = 'http://user:pass@host.tdl'; |
62 | |
63 | /* |
64 | * ----------------------------------------------------------------------- |
65 | * Logging PSR3 compatible |
66 | */ |
67 | public static $log = null; |
68 | |
69 | /* |
70 | * ----------------------------------------------------------------------- |
71 | * Mail settings |
72 | */ |
73 | public static $mails_per_minute = 300; |
74 | |
75 | /* |
76 | * ----------------------------------------------------------------------- |
77 | * SMTP settings |
78 | */ |
79 | public static $smtp_enabled = false; |
80 | |
81 | public static $smtp_host = null; |
82 | |
83 | public static $smtp_port = null; |
84 | |
85 | public static $smtp_auth_enabled = true; |
86 | |
87 | public static $smtp_auth_method = null; |
88 | |
89 | public static $smtp_username = null; |
90 | |
91 | public static $smtp_password = null; |
92 | |
93 | public static $smtp_skip_tls_verify = false; |
94 | |
95 | public static $verify_dns_enabled = false; |
96 | |
97 | public static $smtp_debug = false; |
98 | } |