/** * Initializes some of the ExceptionHandler parameters. If this function is not called * default values are used. * * @param bool $isCli Should exception output be parsed for CLI or not. * @param bool $showErrorPage Should error page be shown or error text. * @param string $errorPageUrl Url of the error page to redirect to. * @param string $logLevel Log level. * @param string $systemExceptionType System exception type. */ public static function setParams($isCli, $showErrorPage, $errorPageUrl, $logLevel, $systemExceptionType) { ExceptionHandler::$isCli = $isCli; ExceptionHandler::$showErrorPage = $showErrorPage; ExceptionHandler::$errorPageUrl = $errorPageUrl; ExceptionHandler::$logLevel = $logLevel; ExceptionHandler::$systemExceptionType = $systemExceptionType; }