CoreFiles by mySites.guru
RendererInterface.php41 lines, 831 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
23132dbb18af1df34a453b87badfac9a
sha1
ac6851282c25f2da04955693cdd4d7b3629d6871
sha256
32de3aaaade4b12b26d56e1865137db00f378eb5fea99594fdd6aa156a624959
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Error;

\defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Document\Document;

/**
 * Interface defining the rendering engine for the error handling layer
 *
 * @since  4.0
 */
interface RendererInterface
{
	/**
	 * Retrieve the Document instance attached to this renderer
	 *
	 * @return  Document
	 *
	 * @since   4.0
	 */
	public function getDocument(): Document;

	/**
	 * Render the error page for the given object
	 *
	 * @param   \Throwable  $error  The error object to be rendered
	 *
	 * @return  string
	 *
	 * @since   4.0
	 */
	public function render(\Throwable $error): string;
}

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.