Rôle du compostans httpFoundation en symfony

Par med001, il y a 8 ans


Bonsoir
C'est quoi rôle du composants httpFoundation en symfony ?

2 réponses

Lartak, il y a 8 ans

Bonjour.
Il te suffit de regarder dans la documentation : The HttpFoundation Component.
Pour résumer :

In PHP, the request is represented by some global variables ($_GET, $_POST, $_FILES, $_COOKIE, $_SESSION, ...) and the response is generated by some functions (echo, header(), setcookie(), ...).

The Symfony HttpFoundation component replaces these default PHP global variables and functions by an object-oriented layer.

Avant de venir demander de l'aide, il faut faire un minimum de recherche, c'est quand même la base, à moins de se considérer comme totalement assisté.

med001, il y a 8 ans

Je fais un recherche mais je comprends rien mon ami .. comment httpFoundation fait une couche oriente objet pout les requets http!?