Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved most of the logic from ResponseListener to the Response::prepar…
…e() method 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.
- Loading branch information
Showing
6 changed files
with
89 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters