-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsymfony_http_client_component.yaml
27 lines (27 loc) · 1.95 KB
/
symfony_http_client_component.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
questions:
-
uuid: 1eebf878-8b9a-673e-9593-99d84c92580c
question: 'Which of the following is not a valid way to create an instance of Symfony\Component\HttpFoundation\Request?'
answers:
- { value: '$request = Request::createRequestFromFactory(/* ... */);', correct: true }
- { value: '$request = new Request(/* ... */);', correct: false }
- { value: '$request = Request::createFromGlobals(/* ... */);', correct: false }
- { value: '$request = Request::create(/* ... */);', correct: false }
help: 'https://symfony.com/doc/current/components/http_foundation.html#request'
-
uuid: 1eebf878-8ba5-61fc-a856-99d84c92580c
question: 'Which statement is true about FlashBag::add() and FlashBag::set()?'
answers:
- { value: 'The FlashBag::add() method allow to add a single message while FlashBag::set() allow to add a set of message using a callback', correct: false }
- { value: 'They behave the same way', correct: false }
- { value: 'The FlashBag::add() method allow to add a single message while FlashBag::set() allow to add a set of messages', correct: true }
- { value: 'The FlashBag::add() method allow to add a set of messages while FlashBag::set() allow to add a single message', correct: false }
help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php'
-
uuid: 1ef91ee4-daf6-6de2-815d-598df0174ec8
question: "What is the result of calling the isXmlHttpRequest() method on a Symfony\\Component\\HttpFoundation\\Request object?"
answers:
- { value: 'Returns true if the request contains XML content.', correct: false }
- { value: 'Returns true if the request has the X-Requested-With header set to XMLHttpRequest.', correct: true }
- { value: 'Returns true if the request has the Content-Type header set to application/xml.', correct: false }
help: 'https://github.com/symfony/http-foundation/blob/7.0/Request.php'