diff --git a/Templating/Twig/DebugTemplate.php b/Templating/Twig/DebugTemplate.php index 3d9eaae..3465ecb 100644 --- a/Templating/Twig/DebugTemplate.php +++ b/Templating/Twig/DebugTemplate.php @@ -23,7 +23,7 @@ * Mainly copy/paste of eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate, courtesy of eZ Systems AS. * Adds mapping between template name and path, to display actual used template source when using themes. */ -abstract class DebugTemplate extends Twig_Template +class DebugTemplate extends Twig_Template { /** * Map between template names and associated paths. @@ -89,4 +89,36 @@ public function display(array $context, array $blocks = array()) echo $templateResult; } } + + /** + * {@inheritdoc} + */ + public function getTemplateName() + { + return ''; + } + + /** + * {@inheritdoc} + */ + public function getSource() + { + return ''; + } + + /** + * {@inheritdoc} + */ + protected function doDisplay(array $context, array $blocks = array()) + { + return ''; + } + + /** + * {@inheritdoc} + */ + public function getDebugInfo() + { + return array(); + } }