@@ -13,14 +13,15 @@ compiled/evaluated quicker.
13
13
The Workflow
14
14
------------
15
15
16
- Both ``evaluate `` and ``compile `` need to do some things before each can
17
- provide the return values. For ``evaluate ``, this overhead is even bigger.
16
+ Both :method: `Symfony\\ Component\\ ExpressionLanguage\\ ExpressionLanguage::evaluate `
17
+ and ``compile() `` need to do some things before each can provide the return
18
+ values. For ``evaluate() ``, this overhead is even bigger.
18
19
19
- Both methods need to tokenize and parse the expression. This is done by the
20
+ Both methods need to tokenize and parse the expression. This is done by the
20
21
:method: `Symfony\\ Component\\ ExpressionLanguage\\ ExpressionLanguage::parse `
21
22
method. It returns a :class: `Symfony\\ Component\\ ExpressionLanguage\\ ParsedExpression `.
22
- Now, the ``compile `` method just returns the string conversion of this object.
23
- The ``evaluate `` method needs to loop through the "nodes" (pieces of an
23
+ Now, the ``compile() `` method just returns the string conversion of this object.
24
+ The ``evaluate() `` method needs to loop through the "nodes" (pieces of an
24
25
expression saved in the ``ParsedExpression ``) and evaluate them on the fly.
25
26
26
27
To save time, the ``ExpressionLanguage `` caches the ``ParsedExpression `` so
@@ -40,14 +41,14 @@ in the object using the constructor::
40
41
41
42
.. note ::
42
43
43
- The `DoctrineBridge `_ has a ParserCache implementation using the
44
+ The `DoctrineBridge `_ provides a Parser Cache implementation using the
44
45
`doctrine cache library `_, which gives you caching for all sorts of cache
45
- strategies, like Apc, Filesystem and Apc .
46
+ strategies, like Apc, Filesystem and Memcached .
46
47
47
48
Using Parsed and Serialized Expressions
48
49
---------------------------------------
49
50
50
- Both ``evaluate `` and ``compile `` can handle ``ParsedExpression `` and
51
+ Both ``evaluate() `` and ``compile() `` can handle ``ParsedExpression `` and
51
52
``SerializedParsedExpression ``::
52
53
53
54
use Symfony\Component\ExpressionLanguage\ParsedExpression;
0 commit comments