Prado\PradoBase::initErrorHandlers PHP Метод

initErrorHandlers() публичный статический Метод

This method set error and exception handlers to be functions defined in this class.
public static initErrorHandlers ( )
    public static function initErrorHandlers()
    {
        /**
         * Sets error handler to be Prado::phpErrorHandler
         */
        set_error_handler(array('\\Prado\\PradoBase', 'phpErrorHandler'));
        /**
         * Sets shutdown function to be Prado::phpFatalErrorHandler
         */
        register_shutdown_function(array('PradoBase', 'phpFatalErrorHandler'));
        /**
         * Sets exception handler to be Prado::exceptionHandler
         */
        set_exception_handler(array('\\Prado\\PradoBase', 'exceptionHandler'));
        /**
         * Disable php's builtin error reporting to avoid duplicated reports
         */
        ini_set('display_errors', 0);
    }