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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -498,7 +498,7 @@ use Tempest\Router\HttpMiddlewareCallable;
498
498
use Tempest\Http\Request;
499
499
use Tempest\Http\Response;
500
500
use Tempest\Discovery\SkipDiscovery;
501
-
use Tempest\Core\Priority;
501
+
use Tempest\Support\Priority;
502
502
503
503
#[SkipDiscovery]
504
504
#[Priority(Priority::LOW)]
@@ -518,17 +518,17 @@ final readonly class ValidateWebhook implements HttpMiddleware
518
518
519
519
### Middleware priority
520
520
521
-
All middleware classes are sorted based on their priority. By default, each middleware has the "normal" priority, which can be overridden using the {b`#[Tempest\Core\Priority]`} attribute:
521
+
All middleware classes are sorted based on their priority. By default, each middleware has the "normal" priority, which can be overridden using the {b`#[Tempest\Support\Priority]`} attribute:
522
522
523
523
```php
524
-
use Tempest\Core\Priority;
524
+
use Tempest\Support\Priority;
525
525
526
526
#[Priority(Priority::HIGH)]
527
527
final readonly class ValidateWebhook implements HttpMiddleware
528
528
{ /* … */ }
529
529
```
530
530
531
-
Priority is defined using an integer. However, for consistency reasons, it is recommended to use of the built-in {b`Tempest\Core\Priority`} constants.
531
+
Priority is defined using an integer. However, for consistency reasons, it is recommended to use of the built-in {b`Tempest\Support\Priority`} constants.
|`completion:install`| Install the completion script and generate metadata. |
287
287
|`completion:generate`| Regenerate the completion metadata JSON. |
288
288
|`completion:show`| Output the completion script to stdout (useful for custom installation). |
@@ -325,17 +325,17 @@ Middleware classes will be autowired by the container, so you can use the constr
325
325
326
326
#### Middleware priority
327
327
328
-
All console middleware classes get sorted based on their priority. By default, each middleware gets the normal priority, but you can override it using the {b`#[Tempest\Core\Priority]`} attribute:
328
+
All console middleware classes get sorted based on their priority. By default, each middleware gets the normal priority, but you can override it using the {b`#[Tempest\Support\Priority]`} attribute:
329
329
330
330
```php app/InspireMiddleware.php
331
-
use Tempest\Core\Priority;
331
+
use Tempest\Support\Priority;
332
332
333
333
#[Priority(Priority::HIGH)]
334
334
final readonly class InspireMiddleware implements ConsoleMiddleware
335
335
{ /* … */ }
336
336
```
337
337
338
-
Note that priority is defined using an integer. However, the {b`Tempest\Core\Priority`} class provides a few constants with predefined priorities: `Priority::FRAMEWORK`, `Priority::HIGHEST`, `Priority::HIGH`, `Priority::NORMAL`, `Priority::LOW`, `Priority::LOWEST`.
338
+
Note that priority is defined using an integer. However, the {b`Tempest\Support\Priority`} class provides a few constants with predefined priorities: `Priority::FRAMEWORK`, `Priority::HIGHEST`, `Priority::HIGH`, `Priority::NORMAL`, `Priority::LOW`, `Priority::LOWEST`.
Copy file name to clipboardExpand all lines: docs/2-features/08-events.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ final readonly class EventLoggerMiddleware implements EventBusMiddleware
138
138
All event bus middleware classes get sorted based on their priority. By default, each middleware gets the "normal" priority, but you can override it using the `#[Priority]` attribute:
139
139
140
140
```php
141
-
use Tempest\Core\Priority;
141
+
use Tempest\Support\Priority;
142
142
143
143
#[Priority(Priority::HIGH)]
144
144
final readonly class EventLoggerMiddleware implements EventBusMiddleware
Copy file name to clipboardExpand all lines: docs/2-features/10-command-bus.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ class MyCommandBusMiddleware implements CommandBusMiddleware
211
211
All command bus middleware classes get sorted based on their priority. By default, each middleware gets the "normal" priority, but you can override it using the `#[Priority]` attribute:
212
212
213
213
```php
214
-
use Tempest\Core\Priority;
214
+
use Tempest\Support\Priority;
215
215
216
216
#[Priority(Priority::HIGH)]
217
217
final readonly class MyCommandBusMiddleware implements CommandBusMiddleware
0 commit comments