Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function emit(ResponseInterface $response) : bool |
||
34 | { |
||
35 | if (! $response->hasHeader('Content-Disposition') |
||
36 | && ! $response->hasHeader('Content-Range') |
||
37 | ) { |
||
38 | return $this->emitter->emit($response); |
||
39 | } |
||
40 | // 内存优化型 response 输出 |
||
41 | return $this->streamEmitter->emit($response); |
||
42 | } |
||
43 | } |