@@ -360,15 +360,15 @@ entity, and even register the group provider as a service.
360360
361361Here's how you can achieve this:
362362
363- 1) **Define a Separate Group Provider Class: ** create a class that implements
364- the :class: `Symfony\\ Component\\ Validator\\ GroupProviderInterface `
365- and handles the dynamic group sequence logic;
366- 2) **Configure the User with the Provider: ** use the ``provider `` option within
367- the :class: `Symfony\\ Component\\ Validator\\ Constraints\\ GroupSequenceProvider `
368- attribute to link the entity with the provider class;
369- 3) **Autowiring or Manual Tagging: ** if :doc: ` autowiring </service_container/autowiring>`
370- is enabled, your custom provider will be automatically linked. Otherwise, you must
371- :doc: `tag your service </service_container/tags >` manually with the ``validator.group_provider `` tag.
363+ #. **Define a Separate Group Provider Class: ** create a class that implements
364+ the :class: `Symfony\\ Component\\ Validator\\ GroupProviderInterface `
365+ and handles the dynamic group sequence logic;
366+ #. **Configure the User with the Provider: ** use the ``provider `` option within
367+ the :class: `Symfony\\ Component\\ Validator\\ Constraints\\ GroupSequenceProvider `
368+ attribute to link the entity with the provider class;
369+ #. **Autowiring or Manual Tagging: ** if :doc: ` autowiring </service_container/autowiring>`
370+ is enabled, your custom provider will be automatically linked. Otherwise, you must
371+ :doc: `tag your service </service_container/tags >` manually with the ``validator.group_provider `` tag.
372372
373373.. configuration-block ::
374374
0 commit comments