| 1 | <?php |
||
| 10 | class Utils |
||
| 11 | { |
||
| 12 | public static function getFullUrl(Route $route, array $bindings = []): string |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Transform parameters in URLs into real values (/users/{user} -> /users/2). |
||
| 20 | * Uses bindings specified by caller, otherwise just uses '1'. |
||
| 21 | * |
||
| 22 | * @param string $uri |
||
| 23 | * @param array $bindings |
||
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | protected static function replaceUrlParameterBindings(string $uri, array $bindings) |
||
| 45 | } |
||
| 46 |