Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Anomaly\Streams\Platform\Exception\Displayer; |
||
25 | public function display(\Exception $exception, $id, $code, array $headers) |
||
26 | { |
||
27 | $info = $this->info->generate($exception, $id, $code); |
||
28 | |||
29 | return new Response( |
||
30 | $this->factory->make("streams::errors/{$code}", $info), |
||
31 | $code, |
||
32 | array_merge($headers, ['Content-Type' => $this->contentType()]) |
||
33 | ); |
||
34 | } |
||
35 | |||
50 |