symfony/symfony — pull request #4546 by niklasf (2012-06-10 16:40:11+00:00)
Title: [HttpFoundation] Added BinaryFileResponse.

Another stab at #3602, based on @stealth35's code at https://gist.github.com/1472230:

- Move things around a little, clean things up, looking how it has been done in StreamedResponse.
- Add tests.
- Make functions chainable.
- Add a flag whether or not to trust the X-Sendfile-Type header.
- Override setContent() and getContent().