sets a custom error handler to catch notices and such and transform them to exceptions.

todo this could be enhanced to use filters so that at the end of the gateway execution the error handling is set back to normal. This could be useful especially for integration with frameworks.
package Amfphp_Plugins_ErrorHandler
author Ariel Sommeria-Klein

 Methods

constructor.

__construct(array $config) 

Add filters on the HookManager.

Parameters

$config

array

optional key/value pairs in an associative array. Used to override default configuration values.