Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions components/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,18 @@ method after parsing any expression to get its AST::
// dump the AST nodes as a string representation
$astAsString = $ast->dump();

.. note::

The :method:`Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage::parse`
method requires you to be specific about the possible variables and functions.
If you do not need to specify them (e.g. for evaluating the AST in another
engine or to extract some insight from it) you can use the
:method:`Symfony\\Component\\ExpressionLanguage\\Parser::parseWithoutContext` method.

.. versionadded:: 6.4

The `parseWithoutContext` method was introduced in Symfony 6.4.

Manipulating the AST
~~~~~~~~~~~~~~~~~~~~

Expand Down