Skip to content

Commit 98b2b71

Browse files
committed
Merge remote-tracking branch 'origin/stateless-attribute' into stateless-attribute
2 parents fcf55d1 + f629937 commit 98b2b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1-essentials/01-routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ final class ErrorResponseProcessor implements ResponseProcessor
633633

634634
## Stateless routes
635635

636-
When you're building API endpoints, RSS pages, or any other kind of page that does not require any cookie or session data, you mark a route as stateless, skipping all cookie-related logic:
636+
When you're building API endpoints, RSS pages, or any other kind of page that does not require any cookie or session data, you may use the `{#[Tempest\Router\Stateless]}` attribute, which will remove all state-related logic:
637637

638638
```php
639639
use Tempest\Router\Stateless;

0 commit comments

Comments
 (0)