summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
commit60768eedcf8c630124b8469caa55b1f04e8d9e43 (patch)
treee60e410ea8b933e62ebd44c4a0d505a931d43fbe
parent5d30e3e60f674781950ceaa7a411449a561cd214 (diff)
route get path method
-rw-r--r--src/Route.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Route.php b/src/Route.php
index af08ded..f432d61 100644
--- a/src/Route.php
+++ b/src/Route.php
@@ -40,9 +40,10 @@ class Route
return $this->segment;
}
- public function getPath(): string
+ /** @param array<string, string> $parameters */
+ public function getPath(array $parameters = []): string
{
- return $this->segment->getPath();
+ return $this->segment->getPath($parameters);
}
public function getHandler(): Closure