1 | <?php |
||
17 | abstract class BaseWebApplication implements WebApplicationInterface |
||
18 | { |
||
19 | use RequestMiddlewaresAwareTrait; |
||
20 | |||
21 | /** |
||
22 | * @var Router |
||
23 | */ |
||
24 | protected $router; |
||
25 | |||
26 | /** |
||
27 | * @return Router |
||
28 | */ |
||
29 | public function getRouter() : Router |
||
39 | |||
40 | /** |
||
41 | * @param Router $router |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setRouter(Router $router) |
||
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | public function processRequest(ServerRequestInterface $request) : ResponseInterface |
||
61 | |||
62 | /** |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | public function handleRoute( |
||
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | public function handleRouteMethodNotAllowed( |
||
83 | |||
84 | /** |
||
85 | * @inheritDoc |
||
86 | */ |
||
87 | public function handleRouteNotFound( |
||
93 | } |
||
94 |