Archived
1
0
Fork 0
This repository has been archived on 2023-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ts3web/config/EnvConstants.php

105 lines
1.8 KiB
PHP
Raw Permalink Normal View History

2019-08-06 18:25:50 +00:00
<?php
/**
* Class EnvConstants
*/
class EnvConstants
{
/**
* Example env file
*/
const FILE_NAME_EXAMPLE_ENV = "env.example";
2019-08-06 18:25:50 +00:00
/**
* Custom env file
*/
const FILE_NAME_ENV = "env";
/**
* The path to the env file
*/
const ENV_DIR = "ENV_DIR";
/**
* The path to the logs directory
*/
const LOG_DIR = "log_dir";
/**
* The path to the snapshots directory
*/
const SNAPSHOT_DIR = "snapshot_dir";
2019-08-06 18:25:50 +00:00
/**
* Site title
*/
const SITE_TITLE = "site_title";
/**
* Site language
*/
const SITE_LANGUAGE = "site_language";
/**
* Site date format
*/
const SITE_DATE_FORMAT = "site_date_format";
/**
* Theme
2019-08-06 18:25:50 +00:00
*/
const THEME = "theme";
/**
* Cache
*/
const THEME_CACHE = "theme_cache";
/**
* TeamSpeak host
*/
const TEAMSPEAK_HOST = "teamspeak_host";
/**
* TeamSpeak query port
*/
const TEAMSPEAK_QUERY_PORT = "teamspeak_query_port";
/**
* TeamSpeak default user
*/
const TEAMSPEAK_USER = "teamspeak_user";
/**
* TeamSpeak log lines
*/
const TEAMSPEAK_LOG_LINES = "teamspeak_log_lines";
2019-08-06 18:25:50 +00:00
/**
* Log name
*/
const LOG_NAME = "log_name";
/**
* Log level
*/
const LOG_LEVEL = "log_level";
2019-08-07 15:34:39 +00:00
/**
* Required attributes
*/
const ENV_REQUIRED = [
EnvConstants::SITE_TITLE,
EnvConstants::SITE_LANGUAGE,
EnvConstants::SITE_DATE_FORMAT,
EnvConstants::THEME,
EnvConstants::THEME_CACHE,
EnvConstants::TEAMSPEAK_HOST,
EnvConstants::TEAMSPEAK_QUERY_PORT,
EnvConstants::TEAMSPEAK_USER,
EnvConstants::TEAMSPEAK_LOG_LINES,
EnvConstants::LOG_NAME,
EnvConstants::LOG_LEVEL
];
}