Skip to content

Commit

Permalink
Ensure error handler is initialized before URI is processed
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 15, 2015
1 parent 1f23f20 commit 5da88d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/src/Grav/Common/Grav.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,15 @@ public function process()
/** @var Debugger $debugger */
$debugger = $this['debugger'];



// Initialize configuration.
$debugger->startTimer('_config', 'Configuration');
$this['config']->init();
$this['errors']->resetHandlers();
$this['uri']->init();
$this['session']->init();
$this['errors']->resetHandlers();

$debugger->init();
$this['config']->debug();
$debugger->stopTimer('_config');
Expand Down

0 comments on commit 5da88d2

Please sign in to comment.