Requirements¶
If you have any route parameters, there’s an option where you can limit the
possible values for them. For instance, you can validate that client
must be
of type integer.
1 2 3 4 5 6 7 | demo_clients-show:
path: api/demo/clients/{uid}
controller: LMS\Demo\Controller\ClientApiController::show
requirements:
uid: \d+
defaults:
plugin: ClientApi
|
Tip
Required: No
Variants: Use symfony documentation to get more information about possible variants.