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