1 | <?php |
||
24 | class Router implements RouterInterface |
||
25 | { |
||
26 | |||
27 | private $ignoreTrailingSlash = false; |
||
28 | |||
29 | /** |
||
30 | * @var AdaptorInterface $adaptor Router Adaptor. |
||
31 | */ |
||
32 | protected $adaptor; |
||
33 | |||
34 | /** |
||
35 | * @var RouteCollectionInterface $collection Route Collection |
||
36 | */ |
||
37 | protected $collection; |
||
38 | |||
39 | /** |
||
40 | * Router constructor. |
||
41 | * |
||
42 | * @param AdaptorInterface $adaptor Router Adaptor |
||
43 | * @param RouteCollectionInterface $collection Route Collection |
||
44 | * @param array $options Router Options |
||
45 | */ |
||
46 | 11 | public function __construct( |
|
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function getRouterResponse(ServerRequestInterface $request) |
||
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | */ |
||
83 | 2 | public function getRouterResponseFromPath(string $method, string $requestTarget) |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 4 | public function getAdaptor() |
|
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | 1 | public function withAdaptor(AdaptorInterface $adaptor) |
|
109 | |||
110 | /** |
||
111 | * @inheritdoc |
||
112 | * @throws \Rs\Router\Exceptions\AdaptorException |
||
113 | */ |
||
114 | 4 | public function getCollection() |
|
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | * @throws \Rs\Router\Exceptions\RouteException |
||
125 | */ |
||
126 | 1 | public function mergeCollection(RouteCollectionInterface $collection) |
|
132 | |||
133 | /** |
||
134 | * @inheritdoc |
||
135 | */ |
||
136 | 2 | public function withCollection(RouteCollectionInterface $collection) |
|
142 | |||
143 | /** |
||
144 | * @inheritdoc |
||
145 | */ |
||
146 | 1 | public function isCached() |
|
150 | |||
151 | /** |
||
152 | * @param bool $ignore |
||
153 | */ |
||
154 | public function disableTrailingSlash($ignore = true){ |
||
157 | } |
||
158 |