[feature/twig] Changing method for begin node to not use anonymous function

The way it was setup would actually require PHP 5.4, which isn't an option
right now. Leaving the old code there, just commented out, for now at least.

PHPBB3-11598