347053c363
That allows projects that only use HttpFoundation and not HttpKernel to be able to enforce the HTTP specification "rules". $request = Request::createFromGlobals(); $response = new Response(); // do whatever you want with the Respons // enforce HTTP spec $response->prepare($request); $response->send(); Within Symfony2, the prepare method is automatically called by the ResponseListener. |
||
---|---|---|
.. | ||
File | ||
SessionStorage | ||
ApacheRequestTest.php | ||
CookieTest.php | ||
FileBagTest.php | ||
HeaderBagTest.php | ||
ParameterBagTest.php | ||
RequestMatcherTest.php | ||
RequestTest.php | ||
ResponseHeaderBagTest.php | ||
ResponseTest.php | ||
ServerBagTest.php | ||
SessionTest.php |