Skip to content
Browse files

removed Template::callFunction

  • Loading branch information...
1 parent 9528bac commit 43ec3036f70d3a070ca9c962eb95d30a1c8bb735 @arnaud-lb arnaud-lb committed with
Showing with 0 additions and 14 deletions.
  1. +0 −14 lib/Twig/Template.php
View
14 lib/Twig/Template.php
@@ -99,20 +99,6 @@ protected function getContext($context, $item, $line = -1)
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

0 comments on commit 43ec303

Please sign in to comment.
Something went wrong with that request. Please try again.