mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 09:56:32 +00:00
ce55cb842e38cbab65708cbdca6fdba1c96b3951
This PR was merged into the 3.x branch.
Discussion
----------
Remove internal from ExpressionParser
In the advanced doc, it's explained how to write TokenParser:
https://github.com/twigphp/Twig/blob/3.x/doc/advanced.rst#defining-a-token-parser
Such an implementation rely on method like
ExpressionParser::parseExpression or Expression::parseMultitargetExpression,
Currently the ExpressionParser is marked as internal, implying all the method are also internal.
It would be great to promise BC about those methods since they are require/usefull for custom TokenParser.
I dunno if the ``@internal`` tag is still needed for some methods of the ExpressionParser (like the constructor ?).
This would also
Closes https://github.com/twigphp/Twig/issues/3443
Commits
-------
de0f947e Remove internal from ExpressionParser
…
Twig, the flexible, fast, and secure template language for PHP
==============================================================
Twig is a template language for PHP.
Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.
Sponsors
--------
.. raw:: html
<a href="https://blackfire.io/docs/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
<img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
</a>
More Information
----------------
Read the `documentation`_ for more information.
.. _documentation: https://twig.symfony.com/documentation
Description
Languages
PHP
99.9%