forked from efficience-it/certification-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration_parameters.yaml
108 lines (108 loc) · 5.53 KB
/
configuration_parameters.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
questions:
-
uuid: 1eebf878-8b97-61c4-b7c2-99d84c92580c
question: 'What are the correct ways to parse the 1983-07-01 date into an DateTime object?'
answers:
- {value: "Yaml::parse('1983-07-01', 32)", correct: false}
- {value: "Yaml::parse('1983-07-01', Yaml::PARSE_DATETIME)", correct: true}
- {value: "Yaml::parse('1983-07-01', true)", correct: false}
- {value: "Yaml::parse('1983-07-01', false)", correct: false}
- {value: "Yaml::parse('1983-07-01')", correct: true}
- {value: "Yaml::parse('1983-07-01', Yaml::DATETIME)", correct: false}
help: 'https://symfony.com/doc/current/components/yaml.html#date-handling'
-
uuid: 1eebf878-8b98-6c4a-af97-99d84c92580c
question: 'Which methods don''t belong to Symfony\Component\Config\Definition\Builder\ExprBuilder?'
answers:
- {value: else, correct: true}
- {value: ifInteger, correct: true}
- {value: thenSet, correct: true}
- {value: thenValid, correct: true}
- {value: ifEmpty, correct: true}
- {value: ifArray, correct: false}
- {value: then, correct: false}
- {value: ifString, correct: false}
help: 'https://symfony.com/doc/current/components/config/definition.html#validation-rules'
-
uuid: 1eebf878-8b9d-6556-bb01-99d84c92580c
question: 'Which of the following are validation rules provided by Symfony\Component\Config\Definition\Builder\ExprBuilder?'
answers:
- {value: ifInArray(), correct: true}
- {value: ifString(), correct: true}
- {value: ifNull(), correct: true}
- {value: ifArray(), correct: true}
- {value: always(), correct: true}
- {value: ifTrue(), correct: true}
- {value: never(), correct: false}
- {value: ifNotNull(), correct: false}
- {value: ifNotInArray(), correct: true}
help: 'https://symfony.com/doc/current/components/config/definition.html#validation-rules'
-
uuid: 1eebf878-8b9e-6e60-b63b-99d84c92580c
question: 'Which of these configuration node types are available?'
answers:
- {value: scalar, correct: true}
- {value: array, correct: true}
- {value: enum, correct: true}
- {value: string, correct: false}
help: 'https://symfony.com/doc/current/components/config/definition.html#node-type'
-
uuid: 1eebf878-8b9e-6eb0-9f6e-99d84c92580c
question: 'Which of these methods are existing?'
answers:
- {value: useAttributeAsKey(), correct: true}
- {value: isRequired(), correct: true}
- {value: cannotBeEmpty(), correct: true}
- {value: setDefaultValue(), correct: false}
- {value: setValidation(), correct: false}
help: 'https://symfony.com/doc/current/components/config/definition.html'
-
uuid: 1eebf878-8b9e-6f00-8f11-99d84c92580c
question: 'Which class is used to define hierarchy of configuration values?'
answers:
- {value: Symfony\Component\Config\Definition\Builder\TreeBuilder, correct: true}
- {value: Symfony\Component\Config\Definition\Builder\HierarchyBuilder, correct: false}
- {value: Symfony\Component\Config\Definition\Builder\NodeBuilder, correct: false}
- {value: Symfony\Component\Config\Definition\Builder\Builder, correct: false}
help: 'https://symfony.com/doc/current/components/config/definition.html#defining-a-hierarchy-of-configuration-values-using-the-treebuilder'
-
uuid: 1eebf878-8ba1-6a98-afae-99d84c92580c
question: 'Which of the following values are available to define a null element in YAML ?'
answers:
- {value: '-', correct: false}
- {value: 'null', correct: true}
- {value: '~', correct: true}
- {value: 'false', correct: false}
help: 'https://symfony.com/doc/current/components/yaml/yaml_format.html#nulls'
-
uuid: 1eebf878-8ba2-634e-8082-99d84c92580c
question: "Is the following code valid?$value = Yaml::parse(file_get_contents('/path/to/file.yml'));"
answers:
- {value: 'Yes', correct: true}
- {value: 'No', correct: false}
help: 'https://symfony.com/doc/current/components/yaml/introduction.html#reading-yaml-files'
-
uuid: 1eebf878-8ba2-6b14-854d-99d84c92580c
question: 'Given a deprecated service, does using the %service_id% placeholder required in the deprecation message?'
answers:
- {value: 'No', correct: false}
- {value: 'Yes', correct: true}
help: 'https://symfony.com/doc/current/service_container/alias_private.html#deprecating-services'
-
uuid: 1eebf878-8ba3-610e-89e4-99d84c92580c
question: 'What is the purpose of the logging: true option in the translator config?'
answers:
- {value: 'Log a message when the given local is not configured.', correct: false}
- {value: 'Log a message when Symfony translate a string in the given locale.', correct: false}
- {value: 'Translate all log messages in the default locale.', correct: false}
- {value: "Log a message when Symfony doesn't find a translation for the given locale.", correct: true}
help: 'https://symfony.com/doc/current/reference/configuration/framework.html#logging'
-
uuid: 1eebf878-8ba3-6406-a1e6-99d84c92580c
question: 'What is the 2nd argument of Symfony\Component\Config\ConfigCacheFactory::cache method ?'
answers:
- {value: 'A boolean to set the debug mode', correct: false}
- {value: 'An array of options', correct: false}
- {value: 'A callback executed if the cache has to be refreshed', correct: true}
- {value: 'The resource filename', correct: false}
help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/Config/ConfigCacheFactory.php'