Skip to content

Commit

Permalink
EZP-27290: Remove abstract on DebugTemplate to fix dumping logs in pr…
Browse files Browse the repository at this point in the history
…ofiler (ezsystems#1957)
  • Loading branch information
emodric authored and kemoc committed May 10, 2017
1 parent ba6d573 commit efd0427
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Wraps the display method to:
* - Inject debug info into template to be able to see in the markup which one is used
*/
abstract class DebugTemplate extends Twig_Template
class DebugTemplate extends Twig_Template
{
public function display(array $context, array $blocks = array())
{
Expand Down Expand Up @@ -60,4 +60,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 efd0427

Please sign in to comment.