-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfiguration_including_dot_env_and_expression_language_components.yaml
36 lines (36 loc) · 1.81 KB
/
configuration_including_dot_env_and_expression_language_components.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
questions:
-
uuid: 1eebf878-8b9c-6caa-b8d2-99d84c92580c
question: 'Could the expression language AST be dumped?'
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
help: 'https://symfony.com/doc/current/components/expression_language.html#expression-language-ast'
-
uuid: 1eebf878-8b9d-61aa-9351-99d84c92580c
question: 'Which of these ExpressionLanguage methods allow to cache the parsed expression ?'
answers:
- { value: evaluate, correct: true }
- { value: compile, correct: false }
- { value: parse, correct: true }
help: 'https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php'
-
uuid: 1eebf878-8ba2-618c-b1fd-99d84c92580c
question: 'What are the possibles ways to register new functions in Symfony\Component\ExpressionLanguage\ExpressionLanguage?'
answers:
- { value: 'By calling the createFunction() method.', correct: false }
- { value: 'By calling the setFunctions() method.', correct: false }
- { value: 'By calling the registerProvider() method.', correct: true }
- { value: 'By calling the register() method.', correct: true }
- { value: 'By calling the addFunction() method.', correct: false }
help: 'https://symfony.com/doc/current/components/expression_language.html#expression-language-extending'
-
uuid: 1eebf878-8ba7-6556-b59b-99d84c92580c
question: "$language = new ExpressionLanguage(); var_dump($language->evaluate('1 + 2'));"
answers:
- { value: '3', correct: true }
- { value: integer, correct: false }
- { value: '1 + 2', correct: false }
- { value: 'true', correct: false }
- { value: 'false', correct: false }
help: 'https://symfony.com/doc/current/components/expression_language.html#usage'