symfony/symfony — pull request #11960 by florianv (2014-09-19 22:56:13+00:00)
Title: [ExpressionLanguage] Added ability to evaluate callables

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/11938
| License | MIT
| Doc PR |

This PR adds a way to pass callables when evaluating the expression. It also removes the first argument of the evaluator function, which makes it easier to directly register PHP functions for example.