Skip to content

Commit fa19f11

Browse files
committed
feat: add $from for future use
1 parent b60140a commit fa19f11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/Router/RouteCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ class RouteCollection implements RouteCollectionInterface
119119
* routeKey(regex) => [
120120
* 'name' => routeName
121121
* 'handler' => handler,
122+
* 'from' => from,
122123
* ],
123124
* // redirect route
124125
* or routeKey(regex)(from) => [
125126
* 'name' => routeName
126127
* 'handler' => [routeKey(regex)(to) => handler],
127128
* 'redirect' => statusCode,
129+
* 'from' => from,
128130
* ],
129131
* ],
130132
* ]
@@ -1464,6 +1466,7 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
14641466
$this->routes[$verb][$routeKey] = [
14651467
'name' => $name,
14661468
'handler' => $to,
1469+
'from' => $from,
14671470
];
14681471
$this->routesOptions[$verb][$routeKey] = $options;
14691472
$this->routesNames[$verb][$name] = $routeKey;

0 commit comments

Comments
 (0)