From: Arnaud Le Blanc Date: Sun, 26 Dec 2010 11:47:49 +0000 (+0100) Subject: removed Template::callFunction X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=43ec3036f70d3a070ca9c962eb95d30a1c8bb735;p=web%2Fkonrad%2Ftwig.git removed Template::callFunction --- diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index e8f5be0..46aec99 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -99,20 +99,6 @@ abstract class Twig_Template implements Twig_TemplateInterface return $context[$item]; } - protected function callFunction($context, $function, array $arguments = array()) - { - if (!$function instanceof Twig_Function) { - throw new Twig_Error_Runtime('Called a non-function', -1, $this->getTemplateName()); - } - - $object = $function->getObject(); - if (!is_object($object)) { - $object = $this->getContext($context, $object); - } - - return $this->getAttribute($object, $function->getMethod(), $arguments, Twig_Node_Expression_GetAttr::TYPE_METHOD, false); - } - protected function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY, $noStrictCheck = false) { // array