Lines
0.00%
0 / 2
Methods
0.00%
0 / 1
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| initialize | 0.00% | 0 / 2 | 0.00% | 0 / 1 | 2 | ||
| 34 | class Application extends \BO\Slim\Application | |
| 35 | { | |
| 36 | /** | |
| 37 | * Name of the application | |
| 38 | * | |
| 39 | */ | |
| 40 | const string IDENTIFIER = 'zms'; | |
| 41 | ||
| 42 | const string MODULE_NAME = 'zmsadmin'; | |
| 43 | ||
| 44 | public static ?CacheInterface $cache = null; | |
| 45 | ||
| 46 | const bool DEBUG = false; | |
| 47 | ||
| 48 | const TWIG_CACHE = ZMS_ADMIN_TWIG_CACHE; | |
| 49 | ||
| 50 | const string TEMPLATE_PATH = ZMS_ADMIN_TEMPLATE_FOLDER; | |
| 51 | ||
| 52 | const SESSION_DURATION = ZMS_ADMIN_SESSION_DURATION; | |
| 53 | ||
| 54 | public static ?string $includeUrl = '/terminvereinbarung/admin'; | |
| 55 | ||
| 56 | /** | |
| 57 | * allow cluster wide process calls | |
| 58 | */ | |
| 59 | ||
| 60 | public static bool $allowClusterWideCall = true; | |
| 61 | ||
| 62 | /** | |
| 63 | * image preferences | |
| 64 | */ | |
| 65 | ||
| 66 | public static bool $isImageAllowed = false; | |
| 67 | ||
| 68 | /** | |
| 69 | * language preferences | |
| 70 | */ | |
| 71 | const bool MULTILANGUAGE = true; | |
| 72 | ||
| 73 | public static $locale = 'de'; | |
| 74 | public static array $supportedLanguages = array( | |
| 75 | // Default language | |
| 76 | 'de' => array( | |
| 77 | 'name' => 'Deutsch', | |
| 78 | 'locale' => 'de_DE', | |
| 79 | 'default' => true, | |
| 80 | ), | |
| 81 | // Other languages | |
| 82 | 'en' => array( | |
| 83 | 'name' => 'English', | |
| 84 | 'locale' => 'en_GB', | |
| 85 | ) | |
| 86 | ); | |
| 87 | ||
| 88 | /** | |
| 89 | * config preferences | |
| 90 | */ | |
| 91 | const string CONFIG_SECURE_TOKEN = ZMS_CONFIG_SECURE_TOKEN; | |
| 92 | ||
| 93 | /** | |
| 94 | * signature key for url signature to save query paramter with hash | |
| 95 | */ | |
| 96 | public static string $urlSignatureSecret = ZMS_CONFIG_SECURE_TOKEN; | |
| 97 | ||
| 98 | /** | |
| 99 | * ----------------------------------------------------------------------- | |
| 100 | * ZMS API access | |
| 101 | * @var Http $http | |
| 102 | */ | |
| 103 | public static $http = null; | |
| 104 | ||
| 105 | public static $http_curl_config = array(); | |
| 106 | ||
| 107 | const string CLIENTKEY = ''; | |
| 108 | ||
| 109 | const int JSON_COMPRESS_LEVEL = 1; | |
| 110 | ||
| 111 | /** | |
| 112 | * HTTP url for api | |
| 113 | */ | |
| 114 | const string HTTP_BASE_URL = 'http://user:pass@host.tdl'; | |
| 115 | ||
| 116 | public static function initialize(): void | |
| 117 | { | |
| 118 | ModuleLoggerInitializer::configure('ZMS_ADMIN'); | |
| 119 | self::$cache = ModuleLoggerInitializer::tryInitializeCache(); | |
| 120 | } | |
| 121 | } |