You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/1-essentials/01-routing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ public function docsRedirect(string $path): Redirect
147
147
Tempest provides a `\Tempest\uri` function that can be used to generate a URI to a controller method. This function accepts the FQCN of the controller or a callable to a method as its first argument, and named parameters as [the rest of its arguments](https://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list).
148
148
149
149
```php
150
-
use function Tempest\uri;
150
+
use function Tempest\Router\uri;
151
151
152
152
// Invokable classes can be referenced directly:
153
153
uri(HomeController::class);
@@ -173,7 +173,7 @@ A signed URI may be used to ensure that the URI was not modified after it was cr
173
173
To create a signed URI, you may use the `signed_uri` function. This function accepts the same arguments as `uri`, and returns the URI with a `signature` parameter:
@@ -218,7 +218,7 @@ final class PasswordlessAuthenticationController
218
218
To determine whether the current request matches a specific controller action, Tempest provides the `is_current_uri` function. This function accepts the same arguments as `uri`, and returns a boolean.
219
219
220
220
```php
221
-
use function Tempest\is_current_uri;
221
+
use function Tempest\Router\is_current_uri;
222
222
223
223
// Current URI is: /aircraft/1
224
224
@@ -272,7 +272,7 @@ Once you have created a request class, you may simply inject it into a controlle
0 commit comments