Sometimes you just get some content in form of a byte stream and you want to make a file out of it and download it. Here is a short tutorial on how to do this with a StreamedResponse in Symfony2 and how you can write a functional test to validate the basics for the action. […]