diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/engelsystem_provider.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index 1a5f5d86..3f46e4ab 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -1,4 +1,7 @@ <?php + +use Engelsystem\Exceptions\Handler as ExceptionHandler; + /** * This file includes all needed functions, connects to the db etc. */ @@ -97,6 +100,13 @@ require_once realpath(__DIR__ . '/../includes/pages/user_questions.php'); require_once realpath(__DIR__ . '/../includes/pages/user_settings.php'); require_once realpath(__DIR__ . '/../includes/pages/user_shifts.php'); +$errorHandler = new ExceptionHandler( + ($environment == 'development' + ? ExceptionHandler::ENV_DEVELOPMENT + : ExceptionHandler::ENV_PRODUCTION + ) +); + session_start(); gettext_init(); |