Skip to content

Commit

Permalink
Add explanation of why error handler is initialized even when in deve…
Browse files Browse the repository at this point in the history
…loper mode
  • Loading branch information
erikhansen committed Jan 12, 2016
1 parent e1b7552 commit be51c1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/Magento/Framework/App/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ protected function preLaunch(AppInterface $application)
try {
try {
\Magento\Framework\Profiler::start('magento_prelaunch');
/**
* It is necessary to initialize error handler even when in developer mode as certain methods require
* errors to be converted into catchable exceptions.
* For example @see \Magento\Framework\View\Model\Layout\Update\Validator::isValid
*/
$this->initErrorHandler();
$this->initObjectManager();
$this->assertMaintenance();
Expand Down

0 comments on commit be51c1c

Please sign in to comment.