Skip to content

Commit 42bcb96

Browse files
Merge pull request #332 from ericktucto/getdata
New method, getData
2 parents 2be0aa8 + 6edcaab commit 42bcb96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Router.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public function prepareRoutes(ServerRequestInterface $request): void
193193
$this->routesData = $this->routeCollector->getData();
194194
}
195195

196+
public function getData(): array
197+
{
198+
return $this->routeCollector->getData();
199+
}
200+
196201
protected function buildNameIndex(): void
197202
{
198203
foreach ($this->routes as $key => $route) {

0 commit comments

Comments
 (0)