1 | <?php |
||
19 | class Starter |
||
20 | { |
||
21 | public const API_DOCU_STARTER_QUERY_KEY_TARGET = '__apiDocu'; |
||
22 | public const API_DOCU_STARTER_QUERY_KEY_GENERATE = '__apiDocuGenerate'; |
||
23 | |||
24 | /** |
||
25 | * @var Generator |
||
26 | */ |
||
27 | private $generator; |
||
28 | |||
29 | /** |
||
30 | * @var IRouter |
||
31 | */ |
||
32 | private $router; |
||
33 | |||
34 | /** |
||
35 | * @var Http\Response |
||
36 | */ |
||
37 | private $response; |
||
38 | |||
39 | /** |
||
40 | * @var Http\Request |
||
41 | */ |
||
42 | private $httpRequest; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * @param Generator $generator |
||
47 | * @param IRouter $router |
||
48 | * @param Http\Response $response |
||
49 | * @param Http\Request $httpRequest |
||
50 | */ |
||
51 | public function __construct( |
||
67 | |||
68 | |||
69 | /** |
||
70 | * Event thatis firex when particular ApiRoute is matched |
||
71 | */ |
||
72 | public function routeMatched(ApiRoute $route, Request $request): void |
||
86 | |||
87 | |||
88 | /** |
||
89 | * Find ApiRoutes and add listener to each ApiRoute::onMatch event |
||
90 | */ |
||
91 | protected function attachEvents(): void |
||
99 | } |
||
100 |