CoreFiles by mySites.guru
RendererInterface.php41 lines, 830 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
52418261f40ab5d6aabe4876712e0a92
sha1
b13b1301be8c3ebc05a98344a7c811bf18d63ae3
sha256
1c9fd580d9e6bb7face05b232e92437821190a90092e9d86f5e3e0d09fe6a4eb
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 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 3 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha6. See them all, or every version of this file.