summaryrefslogtreecommitdiff
path: root/src/RouteMatch.php
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
commit4c6c1b00e69ea06367dba96b3b024af632b729b6 (patch)
tree6f4d4700df5cd7d45a25082d0096ad70532438cd /src/RouteMatch.php
parentb1b5696cf2fa0b2050d5b0387c4d819d2f41e4d4 (diff)
Refactor dispatch to use a seperate findRoute method
Diffstat (limited to 'src/RouteMatch.php')
-rw-r--r--src/RouteMatch.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/RouteMatch.php b/src/RouteMatch.php
new file mode 100644
index 0000000..d43bf80
--- /dev/null
+++ b/src/RouteMatch.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router;
+
+readonly class RouteMatch
+{
+ public function __construct(
+ public PathSegmentMatch $segmentMatch,
+ public Route $route,
+ ) {
+ }
+}