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: README.md
-79Lines changed: 0 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -817,85 +817,6 @@ class YourApi extends Api
817
817
}
818
818
```
819
819
820
-
### Configure Options
821
-
822
-
It is very common for APIs to offer different options (like language, timezone, etc.).
823
-
To simplify the process of configuring options, the [`OptionsResolver`](https://symfony.com/doc/current/components/options_resolver.html) is available.
824
-
It allows you to create a set of default options and their constraints such as required options, default values, allowed types, etc.
825
-
It then resolves the given options `array` against these default options to ensure it meets all the constraints.
826
-
827
-
For example, if an API has a language and timezone options:
0 commit comments