src/View/Engine/Engine.php
<?php declare(strict_types=1);
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016-2017 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Engine;
use BrightNucleus\View\Support\Findable;
/**
* Interface Engine.
*
* @since 0.1.0
*
* @package BrightNucleus\View\Engine
* @author Alain Schlesser <alain.schlesser@gmail.com>
*/
interface Engine extends Findable
{
/**
* Get the rendering callback for a given URI.
*
* @since 0.1.0
*
* @param string $uri URI to render.
* @param array $context Context in which to render.
*
* @return callable Render callback.
*/
public function getRenderCallback(string $uri, array $context = []): callable;
}