Skip to content

Commit

Permalink
Allow ExceptionHandler detect server environment
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Apr 20, 2022
1 parent cf80797 commit 0f9adef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
require __DIR__ . '/../vendor/autoload.php';
}

use Framework\Debug\ExceptionHandler;
use Framework\Log\LogLevel;
use Framework\MVC\App;
use Framework\Routing\RouteCollection;

$app = new App([
'exceptionHandler' => [
'default' => [
'environment' => $_SERVER['ENVIRONMENT'] ?? ExceptionHandler::PRODUCTION,
'initialize' => true,
'logger_instance' => 'default',
],
Expand Down

0 comments on commit 0f9adef

Please sign in to comment.