summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-01-20 21:12:19 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-20 21:12:19 +0100
commitf7c09cb7ff84db1004a4fa83a70735475702023f (patch)
treecae775cc86e8ea8c7845ab3c70852a29dad6aee1 /includes
parent8254a79c58ab5f80bfd5549f6141fda8039599ab (diff)
Added exception handler
Diffstat (limited to 'includes')
-rw-r--r--includes/engelsystem_provider.php10
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();