Symfony: stream download

To download file the Symfony way, add a download action and not to display layout unless there are errors. In /path/to/your/app/modules/your_module/actions/actions.class.php: