1 | <?php declare(strict_types = 1); |
||
20 | final class HttpApplication implements Delegate |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var Container |
||
25 | */ |
||
26 | private $container; |
||
27 | |||
28 | /** |
||
29 | * HttpApplication constructor. |
||
30 | * |
||
31 | * @param Kernel $kernel |
||
32 | */ |
||
33 | 2 | public function __construct(Kernel $kernel) |
|
37 | |||
38 | /** |
||
39 | * Returns service container instance. |
||
40 | * |
||
41 | * @return Container |
||
42 | */ |
||
43 | public function container(): Container |
||
44 | { |
||
45 | return $this->container; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | 1 | public function next(ServerRequestInterface $request): ResponseInterface |
|
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | 1 | public function run(ServerRequestInterface $request) |
|
70 | |||
71 | } |