minor #2042 [DOC] recipes.rst uses Twig_Function_Function (JakeFr)
minor #2042 [DOC] recipes.rst uses Twig_Function_Function (JakeFr)

This PR was merged into the 1.x branch.

Discussion
----------

[DOC] recipes.rst uses Twig_Function_Function

Hello,
Here's a minor update for recipes.rst
I rewrite the code sample for registerUndefinedFunctionCallback to remove usage of deprecated class Twig_Function_Function.

Commits
-------

1a1ba8b [DOC] recipes.rst uses Twig_Function_Function

nicolas-grekas/Twig,twigphp/Twig,gamernetwork/Twig,twigphp/Twig,nicolas-grekas/Twig,gamernetwork/Twig,gencer/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,gencer/Twig,twigphp/Twig,nicolas-grekas/Twig,gamernetwork/Twig