Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request lolautruche#24 from emodric/patch-1
Remove abstract on DebugTemplate to fix dumping logs in profiler
  • Loading branch information
lolautruche committed Apr 15, 2017
2 parents 8ab5dc0 + 18e5e05 commit d9c8fef
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion Templating/Twig/DebugTemplate.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
}
}

0 comments on commit d9c8fef

Please sign in to comment.