api-platform / docs

API Platform documentation
https://api-platform.com/docs/
164 stars 1.06k forks source link

Update state-processors.md #1887

Closed stevobengtson closed 7 months ago

stevobengtson commented 7 months ago

Add missing @ character in the #[Autowire('api_platform.doctrine.orm.state.persist_processor')] example code.

The correct statement should be: #[Autowire('@api_platform.doctrine.orm.state.persist_processor')]

stevobengtson commented 7 months ago

Good catch!

Could we use this syntax (as recommended by Symfony IIRC) instead, please?

Sure thing, thanks for the review @dunglas !

dunglas commented 7 months ago

Thank you!!