From 4f37cdd08d8606a7687e41c274e7fa2be8da1fe9 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 12 Apr 2011 07:54:05 +0200 Subject: [PATCH] Revert "deleted abstract method doDisplay (maintain BC)" This reverts commit 70d90bedce7788f5aac35357975aaf6c6a584baf. --- lib/Twig/Template.php | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index 754575f..99f8dfb 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -195,6 +195,14 @@ abstract class Twig_Template implements Twig_TemplateInterface } /** + * Auto-generated method to display the template with the given context. + * + * @param array $context An array of parameters to pass to the template + * @param array $blocks An array of blocks to pass to the template + */ + abstract protected function doDisplay(array $context, array $blocks = array()); + + /** * Returns a variable from the context. * * @param array $context The context -- 1.7.2.5