Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | public function request( |
||
58 | Context $ctx, |
||
59 | ServerRequest $sr, |
||
60 | int $route, |
||
61 | callable $handler = null, |
||
62 | array $params = [] |
||
63 | ) : ?Response { |
||
64 | if ($route === Dispatcher::FOUND) { |
||
65 | return null; |
||
66 | } |
||
67 | |||
68 | if ($sr->getMethod() !== 'OPTIONS') { |
||
69 | return null; |
||
70 | } |
||
71 | |||
72 | return $this->response($sr, new Response); |
||
73 | } |
||
85 |