Refactored the filename cache into standalone abstract class which can be implemented using different backends

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-02-18 03:45:58 +01:00
parent f28a90511b
commit 41516a5fc9
3 changed files with 117 additions and 55 deletions

View File

@@ -50,4 +50,19 @@ function parse_ini_file_multi($file, $process_sections = false, $scanner_mode =
}
return $data;
}
function log_debug($message) {
global $logger;
$logger->log('LOG_DEBUG', $message);
}
function log_error($message) {
global $logger;
$logger->log('LOG_ERROR', $message);
}
function log_error_and_throw($message) {
log_error($message);
throw new Exception($message);
}
?>