public function onStartDispatch($args) { $parameters =
$this->
get('service_container'
)->
getParameter('shopware.errorhandler'
);
$this->throwOnRecoverableError =
$parameters['throwOnRecoverableError'
];
$this->ignoredExceptionClasses =
$parameters['ignoredExceptionClasses'
];
// Register ErrorHandler for all errors, including strict
$this->
registerErrorHandler(E_ALL | E_STRICT
);
if ($this->
Config()->
get('logMail'
)) { $this->
get('corelogger'
)->
pushHandler($this->
createMailHandler());
} $this->
get('events'
)->
addListener( 'Enlight_Controller_Front_DispatchLoopShutdown',
[$this, 'onDispatchLoopShutdown'
] );
}