-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathservices_registration.yaml
55 lines (55 loc) · 2.6 KB
/
services_registration.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
questions:
-
uuid: 1eebf878-8b96-6dc8-a0f5-99d84c92580c
question: 'What is the tag to register a custom service that loads translations?'
answers:
- { value: translation_loader, correct: false }
- { value: translation.loader, correct: true }
- { value: translator.loader, correct: false }
- { value: translator_loader, correct: false }
help: 'https://symfony.com/doc/current/reference/dic_tags.html#translation-loader'
-
uuid: 1eebf878-8b9f-663a-9d4f-99d84c92580c
question: 'What is the correct syntax to inject a service app.mailer ?'
answers:
- { value: 'arguments: ["@app.mailer"]', correct: true }
- { value: 'arguments: ["%app.mailer%"]', correct: false }
- { value: 'arguments: ["app.mailer"]', correct: false }
help: 'https://symfony.com/doc/current/service_container.html#service-parameters'
-
uuid: 1eebf878-8b9f-6680-a3eb-99d84c92580c
question: 'What is the correct syntax to inject a parameter mailer.transport ?'
answers:
- { value: 'arguments: ["@mailer.transport"]', correct: false }
- { value: 'arguments: ["%mailer.transport%"]', correct: true }
- { value: 'arguments: ["mailer.transport"]', correct: false }
help: 'https://symfony.com/doc/current/configuration.html#configuration-parameters'
-
uuid: 1eebf878-8b9f-66c6-922d-99d84c92580c
question: 'How to define a service as private ?'
answers:
- { value: 'type: private', correct: false }
- { value: 'scope: private', correct: false }
- { value: 'public: false', correct: true }
- { value: 'private: true', correct: false }
help: 'https://symfony.com/doc/current/service_container.html#public-versus-private-services'
-
uuid: 1eebf878-8ba2-60f6-9047-99d84c92580c
question: 'What is the tag to register a custom service that loads routes?'
answers:
- { value: router.route_loader, correct: false }
- { value: routing_loader, correct: false }
- { value: router_loader, correct: false }
- { value: router.loader, correct: false }
- { value: routing.loader, correct: true }
- { value: routing.route_loader, correct: false }
help: 'https://symfony.com/doc/current/reference/dic_tags.html#routing-loader'
-
uuid: 1eebf878-8ba4-6b62-86fe-99d84c92580c
question: 'Which loader is recommended for translations ?'
answers:
- { value: xlf, correct: true }
- { value: yml, correct: false }
- { value: php, correct: false }
- { value: ini, correct: false }
help: 'https://symfony.com/doc/current/translation.html#translation-resource-file-names-and-locations'