Declare plugins for Twig in template.xml #988
Closed
Labels
Milestone
Comments
I have been debugging this and it appears that the code to handle parameters could be improved and there seems to be an issue in JMS Serializer that prevents the parameters array from populating. I have created issue schmittjoh/serializer#139 to investigate this |
mvriel
added a commit
that referenced
this issue
Sep 6, 2013
I have fixed this issue in the develop branch of phpDocumentor2. Unfortunately I had to change the format of the parameters due to a limitation in JMS Serializer. You can add the following to your template:
You can also set the parameter twig-debug to the value true; this will enable debug mode for Twig and include the debug extension |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With 2.0.0, I'll try to add plugins to the Twig Environnement. In the template.xml I declare those lines :
But, Twig doesn't recieve theses parameters.
I have no parameters in the method
addExtensionsFromTemplateConfiguration()
in https://github.com/phpDocumentor/phpDocumentor2/blob/develop/src/phpDocumentor/Plugin/Core/Transformer/Writer/Twig.php#L269Thanks for all great work in this new version !
The text was updated successfully, but these errors were encountered: