1 | <?php |
||
12 | class RouterCollection implements RouterInterface |
||
13 | { |
||
14 | const ROUTE_NOT_FOUND = 'page://self/__route_not_found'; |
||
15 | /** |
||
16 | * @var RouterInterface[] |
||
17 | */ |
||
18 | private $routers; |
||
19 | |||
20 | /** |
||
21 | * @param RouterInterface[] $routers |
||
22 | */ |
||
23 | 3 | public function __construct(array $routers) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 2 | public function match(array $globals, array $server) |
|
42 | |||
43 | /** |
||
44 | * @return RouterMatch |
||
45 | */ |
||
46 | 1 | private function routeNotFound() |
|
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 2 | public function generate($name, $data) |
|
68 | } |
||
69 |