fabpot/Twig — Issue #517: Extension functions
Author: albeva
Created: 2011-11-16 14:49:54+00:00
State: open

Currently Twig only allows classes that implement Twig_ExtensionInterface class for methods. This is far from trivial and an overkill from a developer point of view. Twig_Function_Method or Twig_Function_Function should allow registering ANY callable for callback and probably is pointless to make distinction anyway between the two...