1 | <?php |
||
26 | class Router implements RouterInterface |
||
27 | { |
||
28 | |||
29 | private $ignoreTrailingSlash = false; |
||
30 | |||
31 | /** |
||
32 | * @var AdaptorInterface $adaptor Router Adaptor. |
||
33 | */ |
||
34 | protected $adaptor; |
||
35 | |||
36 | /** |
||
37 | * @var RouteCollectionInterface $collection Route Collection |
||
38 | */ |
||
39 | protected $collection; |
||
40 | |||
41 | /** |
||
42 | * Router constructor. |
||
43 | * |
||
44 | * @param AdaptorInterface $adaptor Router Adaptor |
||
45 | * @param RouteCollectionInterface $collection Route Collection |
||
46 | * @param array $options Router Options |
||
47 | */ |
||
48 | 11 | public function __construct( |
|
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function getRouterResponse(ServerRequestInterface $request) |
||
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | 2 | public function getRouterResponseFromPath(string $method, string $requestTarget) |
|
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | 4 | public function getAdaptor() |
|
101 | |||
102 | /** |
||
103 | * @inheritdoc |
||
104 | */ |
||
105 | 1 | public function withAdaptor(AdaptorInterface $adaptor) |
|
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | * @throws \Rs\Router\Exceptions\AdaptorException |
||
115 | */ |
||
116 | 4 | public function getCollection() |
|
123 | |||
124 | /** |
||
125 | * @inheritdoc |
||
126 | * @throws \Rs\Router\Exceptions\RouteException |
||
127 | */ |
||
128 | 1 | public function mergeCollection(RouteCollectionInterface $collection) |
|
134 | |||
135 | /** |
||
136 | * @inheritdoc |
||
137 | */ |
||
138 | 2 | public function withCollection(RouteCollectionInterface $collection) |
|
144 | |||
145 | /** |
||
146 | * @inheritdoc |
||
147 | */ |
||
148 | 1 | public function isCached() |
|
152 | |||
153 | /** |
||
154 | * @param bool $ignore |
||
155 | */ |
||
156 | public function disableTrailingSlash($ignore = true){ |
||
159 | } |
||
160 |