diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-11-24 15:08:43 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-11-25 11:27:38 +0100 |
commit | 25e434bce4986b48bd72729a55aa1096e5a76be3 (patch) | |
tree | b254fafaf789b4ebcc980fec8281675415706750 /includes | |
parent | 6eea072376cc9fd1034342a0e1d2173681268138 (diff) |
Refactored ExceptionHandler
Diffstat (limited to 'includes')
-rw-r--r-- | includes/engelsystem.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/engelsystem.php b/includes/engelsystem.php index 688ce49f..07abbb42 100644 --- a/includes/engelsystem.php +++ b/includes/engelsystem.php @@ -2,7 +2,8 @@ use Engelsystem\Application; use Engelsystem\Config\Config; -use Engelsystem\Exceptions\BasicHandler as ExceptionHandler; +use Engelsystem\Exceptions\Handler; +use Engelsystem\Exceptions\Handlers\HandlerInterface; /** * This file includes all needed functions, connects to the db etc. @@ -32,7 +33,8 @@ date_default_timezone_set($app->get('config')->get('timezone')); if (config('environment') == 'development') { $errorHandler = $app->get('error.handler'); - $errorHandler->setEnvironment(ExceptionHandler::ENV_DEVELOPMENT); + $errorHandler->setEnvironment(Handler::ENV_DEVELOPMENT); + $app->bind(HandlerInterface::class, 'error.handler.development'); ini_set('display_errors', true); error_reporting(E_ALL); } else { |