-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Invalid YAML in “Registering Services Without Autowiring” examples
The documentation contains invalid YAML in the following pages:
- state-processors.md – Registering Services Without Autowiring (Symfony variant only)
- state-providers.md – Registering Services Without Autowiring (Symfony variant only)
The examples currently include a ~
after the service class, which makes the YAML invalid:
services:
# ...
App\State\BlogPostProvider: ~
tags: [ 'api_platform.state_provider' ]
✅ Correct version:
services:
# ...
App\State\BlogPostProvider:
tags: [ 'api_platform.state_provider' ]
This fix should be applied to both pages to prevent confusion and ensure valid YAML examples.