-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy paththe_session.yaml
34 lines (34 loc) · 1.61 KB
/
the_session.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
questions:
-
uuid: 1eebf878-8b96-6d00-9234-99d84c92580c
question: 'What is the way to access the session from the $request?'
answers:
- { value: $request->fetchSession(), correct: false }
- { value: $request->getSession(), correct: true }
- { value: $request->session, correct: false }
- { value: $request->getPhpSession(), correct: false }
help: 'https://symfony.com/doc/6.2/components/http_foundation.html#accessing-the-session'
-
uuid: 1eebf878-8b97-696c-a11a-99d84c92580c
question: 'Which method can be used to add a new value into Session?'
answers:
- { value: session->append(), correct: false }
- { value: $session->insert(), correct: false }
- { value: $session->add(), correct: false }
- { value: $session->init(), correct: false }
- { value: $session->set(), correct: true }
help: 'https://github.com/symfony/symfony/blob/7.0/src/Symfony/Component/HttpFoundation/Session/Session.php#L72'
-
uuid: 1eebf878-8b98-6146-952c-99d84c92580c
question: 'Could the session be migrated?'
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
help: 'https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/HttpFoundation/Session/Session.php#L161'
-
uuid: 1eebf878-8ba2-61dc-af35-99d84c92580c
question: 'Could attributes be stored in the session without starting it manually?'
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/HttpFoundation/Session/Session.php#L93'