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
11/**
12 * @SuppressWarnings("TooManyFields")
13 */
14
15if (($token = getenv('ZMS_CONFIG_SECURE_TOKEN')) === false || $token === '') {
16    throw new \RuntimeException('ZMS_CONFIG_SECURE_TOKEN environment variable must be set');
17}
18
19define('ZMS_CONFIG_SECURE_TOKEN', getenv('ZMS_CONFIG_SECURE_TOKEN'));
20
21class Application extends \BO\Slim\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    /*
32     * -----------------------------------------------------------------------
33     * ZMS Messaging access
34     */
35
36    public static $messaging = null;
37
38    /*
39     * -----------------------------------------------------------------------
40     * ZMS API access
41     */
42    public static $http = null;
43
44    public static $httpUser = 'test';
45
46    public static $httpPassword = 'test';
47
48    public static $http_curl_config = array();
49
50    /**
51     * config preferences
52     */
53    const CONFIG_SECURE_TOKEN = ZMS_CONFIG_SECURE_TOKEN;
54
55    /**
56     * HTTP url for api
57     */
58    const HTTP_BASE_URL = 'http://user:pass@host.tdl';
59
60    /*
61     * -----------------------------------------------------------------------
62     * Mail settings
63     */
64    public static $mails_per_minute = 300;
65
66    /*
67     * -----------------------------------------------------------------------
68     * SMTP settings
69     */
70    public static $smtp_enabled = false;
71
72    public static $smtp_host = null;
73
74    public static $smtp_port = null;
75
76    public static $smtp_auth_enabled = true;
77
78    public static $smtp_auth_method = null;
79
80    public static $smtp_username = null;
81
82    public static $smtp_password = null;
83
84    public static $smtp_skip_tls_verify = false;
85
86    public static $verify_dns_enabled = false;
87
88    public static $smtp_debug = false;
89}