Added partial php documentation to the Config class

This commit is contained in:
Tobias Reich 2016-02-08 22:12:03 +01:00
parent 9a1e51c8bd
commit 66edea4d71

View File

@ -43,12 +43,18 @@ if(!defined('LYCHEE')) Response::error('Direct access is not allowed!');
}
/**
* @return boolean Returns true when the config exists.
*/
public static function exists() {
return file_exists(LYCHEE_CONFIG_FILE);
}
/**
* @return array Returns the config.
*/
public static function get() {
require(LYCHEE_CONFIG_FILE);