diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 17:30:54 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 17:30:54 +0200 |
commit | 8c81adc8e83969e90b4c54daf4a396b1094134ff (patch) | |
tree | ae5b7e5bd826a9287d8fa34627d5b67c58e6fb22 /src/Renderer | |
parent | 0a20883aa862779b48fd2a297456c2db04cffb95 (diff) |
Implemented container
Diffstat (limited to 'src/Renderer')
-rw-r--r-- | src/Renderer/Renderer.php | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/Renderer/Renderer.php b/src/Renderer/Renderer.php index bf3d5609..5ed7cf31 100644 --- a/src/Renderer/Renderer.php +++ b/src/Renderer/Renderer.php @@ -2,13 +2,8 @@ namespace Engelsystem\Renderer; -use ErrorException; - class Renderer { - /** @var self */ - protected static $instance; - /** @var EngineInterface[] */ protected $renderer = []; @@ -29,7 +24,7 @@ class Renderer return $renderer->get($template, $data); } - engelsystem_error('Unable to find a renderer for template file «' . $template . '».'); + engelsystem_error('Unable to find a renderer for template file "' . $template . '".'); return ''; } @@ -42,21 +37,4 @@ class Renderer { $this->renderer[] = $renderer; } - - /** - * @return self - * @throws ErrorException - */ - public static function getInstance() - { - return self::$instance; - } - - /** - * @param self $instance - */ - public static function setInstance($instance) - { - self::$instance = $instance; - } } |