-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfiguration_yamlxmlphp_and_attributes_annotations.yaml
56 lines (56 loc) · 2.5 KB
/
configuration_yamlxmlphp_and_attributes_annotations.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
questions:
-
uuid: 1eebf878-8b9c-68cc-9fec-99d84c92580c
question: 'Can you add an extra RouteCollection into an existing one?'
answers:
- { value: 'No', correct: false }
- { value: 'Yes', correct: true }
help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/Routing/RouteCollection.php#L161'
-
uuid: 1eebf878-8b9d-6786-a741-99d84c92580c
question: 'Could a Route defined with /page/{foo}/{foo} path be compiled?'
answers:
- { value: 'Yes', correct: false }
- { value: 'No', correct: true }
help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/Routing/RouteCompiler.php#L137'
-
uuid: 1eebf878-8b9f-6126-8428-99d84c92580c
question: 'Which of these annotations can be used in a controller?'
answers:
- { value: '@Cache', correct: true }
- { value: '@ParamConverter', correct: true }
- { value: '@Security', correct: true }
- { value: '@Template', correct: true }
- { value: '@Method', correct: false }
- { value: '@Post', correct: false }
- { value: '@CatchException', correct: false }
help: 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html#annotations-for-controllers'
-
uuid: 1eebf878-8ba7-6376-ba70-99d84c92580c
question: 'From which global arrays is it possible to read submitted form data?'
answers:
- { value: $_POST, correct: true }
- { value: $_SESSION, correct: false }
- { value: $_GET, correct: true }
- { value: $_COOKIE, correct: false }
- { value: $_ENV, correct: false }
- { value: $_REQUEST, correct: true }
help: 'https://php.net/manual/en/reserved.variables.post.php'
-
uuid: 1ef65db9-50b2-6274-ab3b-834e2ca05a89
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.html#reading-yaml-files'
-
uuid: 1ef65dbc-b1db-602a-b33b-05d4fde5fe6a
question: 'Which format of configuration file can be used to set PHP constants as parameters?'
answers:
- { value: YAML, correct: true }
- { value: XML, correct: true }
- { value: INI, correct: false }
- { value: PHP, correct: true }
- { value: Annotation, correct: false }
- { value: Attribute, correct: false }
help: 'https://symfony.com/doc/current/configuration.html#constants-as-parameters'