8000 Add support for UrlRoutable to route() · laravel/lumen-framework@83d58a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83d58a3

Browse files
committed
Add support for UrlRoutable to route()
1 parent 6016d8c commit 83d58a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Routing/UrlGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ public function route($name, $parameters = array())
197197
}
198198

199199
$uri = $this->app->namedRoutes[$name];
200+
201+
$parameters = $this->formatParametersForUrl($parameters);
200202

201203
$uri = preg_replace_callback('/\{(.*?)(:.*?)?\}/', function ($m) use (&$parameters) {
202204
return isset($parameters[$m[1]]) ? array_pull($parameters, $m[1]) : $m[0];

0 commit comments

Comments
 (0)
0