Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update Twig extension documentation to use 1.12 changes #2421

Closed
weaverryan opened this Issue · 4 comments

3 participants

@weaverryan
Collaborator

This will apply to 2.1+. As of Twig 1.12, creating a Twig extension is slightly different. For example, Twig_Function_Function is replaced by Twig_SimpleFunction.

Both the old and new version of the Twig docs are maintained, which is nice for comparison:

Old: http://twig.sensiolabs.org/doc/advanced_legacy.html#creating-an-extension
New: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension

@WouterJ
Collaborator

Yes, Ryan is talking about that document.

@ricardclau

Ok, I can take this one if you are ok with it.

@WouterJ
Collaborator

of course! Do what you can! :)

@weaverryan weaverryan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.