From 4b601a7ffab7a05820757b47cec9073d7672ac44 Mon Sep 17 00:00:00 2001 From: Maarten Date: Thu, 13 Feb 2020 18:36:26 +0100 Subject: [PATCH] Fix factory --- src/Runtime/Http/View/Factory.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Runtime/Http/View/Factory.php b/src/Runtime/Http/View/Factory.php index 7b34348..9bbbd1e 100644 --- a/src/Runtime/Http/View/Factory.php +++ b/src/Runtime/Http/View/Factory.php @@ -2,13 +2,15 @@ namespace Runtime\Http\View; +use Runtime\Contracts\View\Factory as FactoryContract; use Runtime\Exceptions\ExceptionHandler; use Runtime\Factory\AppFactory; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Error\SyntaxError; -class Factory extends AppFactory implements \Runtime\Contracts\View\Factory { +class Factory extends AppFactory implements FactoryContract +{ /** * @var string @@ -31,11 +33,13 @@ class Factory extends AppFactory implements \Runtime\Contracts\View\Factory { $this->arguments = $arguments; try { - return $this->render(); + return $this->render(); } catch (\Exception $e) { ExceptionHandler::make($e); } + + return ''; } /**