1 | <?php |
||
12 | class Kernel |
||
13 | { |
||
14 | /** |
||
15 | * @var Registry |
||
16 | */ |
||
17 | protected $registry; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | * @var Router |
||
22 | */ |
||
23 | protected $router; |
||
24 | |||
25 | /** |
||
26 | * @param Registry $registry |
||
27 | * @param Router $router |
||
28 | */ |
||
29 | 5 | public function __construct(Registry $registry, Router $router) |
|
34 | |||
35 | /** |
||
36 | * @param ServerRequestInterface $request |
||
37 | * @return Response|mixed |
||
38 | */ |
||
39 | 5 | public function handle(ServerRequestInterface $request) |
|
65 | |||
66 | /** |
||
67 | * Method injection resolver |
||
68 | * |
||
69 | * @param $action |
||
70 | * @param $params |
||
71 | * @return mixed |
||
72 | */ |
||
73 | 2 | protected function resolve($action, $params) |
|
95 | |||
96 | /** |
||
97 | * @return Closure |
||
98 | */ |
||
99 | protected function getParams() |
||
105 | } |
||
106 |