1 | <?php |
||
12 | final class CorsPreflightRequestHandler implements RequestHandlerInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var ResponseFactoryInterface |
||
16 | */ |
||
17 | private $responseFactory; |
||
18 | |||
19 | /** |
||
20 | * @var string[] |
||
21 | */ |
||
22 | private $allowMethods; |
||
23 | |||
24 | /** |
||
25 | * @var string[] |
||
26 | */ |
||
27 | private $allowHeaders; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $maxAge; |
||
33 | |||
34 | /** |
||
35 | * @param ResponseFactoryInterface $responseFactory |
||
36 | * @param string[] $allowMethods |
||
37 | * @param string[] $allowHeaders |
||
38 | * @param int $maxAge |
||
39 | */ |
||
40 | 1 | public function __construct( |
|
51 | |||
52 | /** |
||
53 | * @param ServerRequestInterface $request |
||
54 | * |
||
55 | * @return ResponseInterface |
||
56 | */ |
||
57 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
65 | } |
||
66 |