Allow to pass data to renderer

This commit is contained in:
Dennis Eichhorn 2017-05-18 19:54:53 +02:00
parent d687f02951
commit 098fe4130a

View File

@ -245,7 +245,7 @@ abstract class ViewAbstract implements \Serializable
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function render() : string
public function render(...$data) : string
{
$path = __DIR__ . '/../..' . $this->template . '.tpl.php';