Skip to content

Commit

Permalink
Merge pull request #332 from ericktucto/getdata
Browse files Browse the repository at this point in the history
New method, getData
  • Loading branch information
philipobenito authored Sep 28, 2024
2 parents 2be0aa8 + 6edcaab commit 42bcb96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ public function prepareRoutes(ServerRequestInterface $request): void
$this->routesData = $this->routeCollector->getData();
}

public function getData(): array
{
return $this->routeCollector->getData();
}

protected function buildNameIndex(): void
{
foreach ($this->routes as $key => $route) {
Expand Down

0 comments on commit 42bcb96

Please sign in to comment.