From aa908ab7bd03818a2cb1f9b4686034f08736d1cb Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 19 Feb 2026 14:52:15 +0100 Subject: initial commit --- src/Router/Route.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/Router/Route.php (limited to 'src/Router/Route.php') diff --git a/src/Router/Route.php b/src/Router/Route.php new file mode 100644 index 0000000..ee9637b --- /dev/null +++ b/src/Router/Route.php @@ -0,0 +1,39 @@ +name = $path; + } + + $defaults = array_merge([ + "_" => [ + "action" => $action, + ], + ], $defaults); + + parent::__construct($path, $defaults, $requirements, $options, $host, $schemes, $methods, $condition); + } + + public function getName(): string + { + return $this->name; + } +} -- cgit v1.2.3