Controller Flashcards

1
Q

quel est le FQDN de l’AbstractController

A

Symfony\Bundle\FrameworkBundle\Controller\AbstractController

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

l’AbstractController permet de donner accès à quel objet du framework

A

Router, Request, Response, Form, Doctrine, User, Render, Json, flash, Config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

comment get directly param of the query GET

A

avec l’attribut #[MapQueryParameter] string $firstName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

comment valider en autoWiring un param d’une request GET

A

[MapQueryParameter(filter: \FILTER_VALIDATE_REGEXP, options: [‘regexp’ => ‘/^\w+$/’])] string $firstName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a quoi sert l’attribut #[MapQueryString]

A

permet de mapper les param d’une request avec un obj DTO et add des validator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

comment récupérer et mapper le payload d’une request API

A

avec l’attribut #[MapRequestPayload] et un DTO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

comment autoWiring des files uploaded

A

avec l’attribut #[MapUploadedFile]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

qu’est ce qu’un Early Hints

A

un court envoi HTTP permettant au browser de préparer l’arriver d’une ressource à des fins de performances

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly