Skip to content

Commit 2f89574

Browse files
committed
docs: clarify getMany return keys
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 7603b53 commit 2f89574

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/basic-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ $settings = service('settings')->getMany([
2424
]);
2525
```
2626

27+
Unlike `get()`, which returns a single value, `getMany()` returns an array keyed by the exact setting names you requested.
28+
2729
In this case we used the short class name, `App`, which the `config()` method automatically locates within the
2830
`app/Config` directory. If it was from a module, it would be found there. Either way, the fully qualified name
2931
is automatically detected by the Settings class to keep values separated from config files that may share the

0 commit comments

Comments
 (0)