symfony/symfony — pull request #10726 by nicolas-grekas (2014-04-17 08:17:20+00:00)
Title: [HttpFoundation] factorize out the way output buffers should be closed

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | none
| License | MIT
| Doc PR | none

Closing output buffers was done in three different files, but not exactly the same way, with subtle differences.
This PR factorizes out the best way to do this in a new public static function of the Response class.