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 Zmsticketprinter
6 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
7 *
8 */
9
10namespace BO\Zmsticketprinter;
11
12if (!getenv('ZMS_CONFIG_SECURE_TOKEN')) {
13    throw new \RuntimeException('ZMS_CONFIG_SECURE_TOKEN environment variable must be set');
14}
15
16define('ZMS_CONFIG_SECURE_TOKEN', getenv('ZMS_CONFIG_SECURE_TOKEN'));
17
18class Application extends \BO\Slim\Application
19{
20    /**
21     * Name of the application
22     */
23    const IDENTIFIER = 'zms';
24
25    const MODULE_NAME = 'zmsticketprinter';
26
27    public const DEBUG = false;
28
29    /**
30     * language preferences
31     */
32    public static $locale = 'de';
33
34    public static $supportedLanguages = array(
35        // Default language
36        'de' => array(
37            'name' => 'Deutsch',
38            'locale' => 'de_DE.utf-8',
39            'default' => true,
40        ),
41        'en' => array(
42            'name' => 'English',
43            'locale' => 'en_GB.utf-8',
44            'default' => false,
45        )
46    );
47
48    public static $now = '';
49
50    /*
51     * -----------------------------------------------------------------------
52     * ZMS API access
53     */
54
55    public static $http = null;
56
57    public static $http_curl_config = array();
58
59    public const JSON_COMPRESS_LEVEL = 1;
60
61    /**
62     * HTTP url for api
63     */
64    public const HTTP_BASE_URL = 'http://user:pass@host.tdl';
65    public const SECURE_TOKEN = ZMS_CONFIG_SECURE_TOKEN;
66
67    public const CLIENTKEY = '';
68}