-
Notifications
You must be signed in to change notification settings - Fork 6
/
code_organization.yaml
21 lines (21 loc) · 1.16 KB
/
code_organization.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
questions:
-
uuid: 1eebf878-8ba3-6ae6-9530-99d84c92580c
question: 'What is the default directory of Doctrine entities in a bundle?'
answers:
- { value: Entities, correct: false }
- { value: Doctrine/Entities, correct: false }
- { value: Entity, correct: true }
- { value: Doctrine, correct: false }
- { value: Doctrine/Entity, correct: false }
help: 'https://symfony.com/doc/current/book/doctrine.html'
-
uuid: 1eebf878-8ba3-6e9c-9225-99d84c92580c
question: 'Which of these are correct ways to create a redirection response in a controller that extends Symfony\Bundle\FrameworkBundle\Controller\AbstractController?'
answers:
- { value: '$response = $this->redirect($this->generate("homepage"))', correct: true }
- { value: '$response = $this->redirect("https://myapp.com/")', correct: true }
- { value: '$response = new RedirectionResponse("/")', correct: false }
- { value: '$response = new RedirectResponse("https://myapp.com/")', correct: false }
- { value: '$response = $this->redirectToRoute("homepage")', correct: true }
help: 'https://symfony.com/doc/current/controller.html#redirecting'