The HttpFoundation component defines an object-oriented layer for the HTTP specification. 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-oriente
![The HttpFoundation Component (Symfony Docs)](https://cdn-ak-scissors.b.st-hatena.com/image/square/b007104dc5bb21837ce4e44ef1bc12ae2175bac1/height=288;version=1;width=512/https%3A%2F%2Fsymfony.com%2Fimages%2Fopengraph%2Fsymfony.png)