1 | <?php |
||
18 | class HttpRouterBootstrapper implements Bootstrapper |
||
19 | { |
||
20 | /** @var \Closure */ |
||
21 | protected $routes; |
||
22 | |||
23 | 1 | public function __construct(Closure $routes = null) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function providers(): array |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function boot(ContainerInterface $app) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function execute(ContainerInterface $app): int |
|
78 | |||
79 | /** |
||
80 | * @param \Wandu\Router\Dispatcher $dispatcher |
||
81 | * @param \Psr\Http\Message\ServerRequestInterface $request |
||
82 | * @return \Psr\Http\Message\ResponseInterface |
||
83 | * @throws \Wandu\Http\Exception\MethodNotAllowedException |
||
84 | * @throws \Wandu\Http\Exception\NotFoundException |
||
85 | */ |
||
86 | 1 | protected function dispatch(Dispatcher $dispatcher, ServerRequestInterface $request) |
|
93 | } |
||
94 |