| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function getWrappedContent(Response $response): Stream |
||
| 21 | { |
||
| 22 | $content = $this->content; |
||
| 23 | $response->setType($content->getExtension()); |
||
| 24 | $response->setHeader('Content-Disposition', 'attachment;filename="' . $content->getBasename().'"'); |
||
| 25 | $response->setHeader('Cache-Control', 'max-age=0'); |
||
| 26 | return new DataStream($content); |
||
| 27 | } |
||
| 29 |