Fabien Potencier ce55cb842e feature #3763 Remove internal from ExpressionParser (VincentLanglet)
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
2022-10-22 14:59:12 +02:00
2022-09-28 08:41:08 +02:00
2022-10-05 08:26:51 +02:00
2022-10-20 22:22:52 +02:00
2022-09-28 10:36:55 +02:00
2022-09-28 10:43:58 +02:00

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
Languages
PHP 99.9%