1 | <?php |
||
14 | class Router implements RouterInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var Route[] |
||
18 | */ |
||
19 | private $routes; |
||
20 | |||
21 | /** |
||
22 | * @var RequestHandlerFactoryInterface |
||
23 | */ |
||
24 | private $factory; |
||
25 | |||
26 | 2 | public function __construct(RequestHandlerFactoryInterface $factory) |
|
31 | |||
32 | 2 | private function addRoute(Route $route) |
|
36 | |||
37 | 2 | public function add(string $name, RequestMatcherInterface $matcher, $coreHandlerRef, array $middlewareRefs = []) |
|
42 | |||
43 | 2 | public function match(ServerRequestInterface $request): RoutingResultInterface |
|
59 | } |
||
60 |