Skip to content

Commit 449c9d5

Browse files
committed
Address review feedback: add optional packages section and clarify Symfony-specific listeners
1 parent ebcbe24 commit 449c9d5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

core/bootstrap.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ composer require \
3131
willdurand/negotiation
3232
```
3333

34+
You may also want to install additional packages depending on your needs:
35+
36+
```console
37+
composer require \
38+
symfony/validator # validation support
39+
```
40+
3441
## Full Bootstrap Example
3542

3643
Create the following file structure:
@@ -669,6 +676,9 @@ $serializeProcessor = new SerializeProcessor(
669676
// ──────────────────────────────────────────────
670677
// 12. Event Listeners and HttpKernel
671678
// ──────────────────────────────────────────────
679+
// Note: this section is specific to the Symfony HttpKernel.
680+
// When using Laravel, request handling is managed differently
681+
// (see ApiPlatformProvider).
672682

673683
$formatListener = new AddFormatListener($contentNegotiationProvider, $resourceMetadataFactory);
674684
$readListener = new ReadListener(

0 commit comments

Comments
 (0)