summaryrefslogtreecommitdiff
path: root/src/Renderer/Renderer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Renderer/Renderer.php')
-rw-r--r--src/Renderer/Renderer.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Renderer/Renderer.php b/src/Renderer/Renderer.php
index 5ed7cf31..de31ca74 100644
--- a/src/Renderer/Renderer.php
+++ b/src/Renderer/Renderer.php
@@ -2,8 +2,12 @@
namespace Engelsystem\Renderer;
+use Psr\Log\LoggerAwareTrait;
+
class Renderer
{
+ use LoggerAwareTrait;
+
/** @var EngineInterface[] */
protected $renderer = [];
@@ -24,7 +28,10 @@ class Renderer
return $renderer->get($template, $data);
}
- engelsystem_error('Unable to find a renderer for template file "' . $template . '".');
+ if ($this->logger) {
+ $this->logger->error('Unable to find a renderer for template file "{file}"', ['file' => $template]);
+ }
+
return '';
}