/** * Prevent any redirections using the WebCore. * @see set_up_debugging() */ public function ignore_redirect_requests() { $this->ignore_redirects = true; set_default_exception_handler(new LOGGER_EXCEPTION_HANDLER($this)); }
/** * Create a {@link LOGGER_EXCEPTION_HANDLER}, by default. * @access private */ protected function _set_up_exception_handling() { $handler = new LOGGER_EXCEPTION_HANDLER($this->env); $handler->stop_on_error = $this->stop_on_error; set_default_exception_handler($handler); $this->env->run_as_console = $this->run_as_console; }
/** * Set up the WebCore session in "release" mode. * Creates a {@link REDIRECT_EXCEPTION_HANDLER} to abort display of a page * and redirect the exception to an error handler page. * @see _apply_debug_settings() */ protected function _apply_release_settings($env) { $env->debug_enabled = false; set_default_exception_handler(new REDIRECT_EXCEPTION_HANDLER($env)); }