Skip to content

Commit f7adf11

Browse files
committed
Update according PR's changes
1 parent efd555b commit f7adf11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation/sequence_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Here's how you can achieve this:
368368
1) **Define a Separate Group Provider Class:** You can create a class that
369369
implements the :class:`Symfony\\Component\\Validator\\GroupProviderInterface`
370370
and handles the dynamic group sequence logic.
371-
2) **Configure the User with the Provider:** Use the ``class`` option within the
371+
2) **Configure the User with the Provider:** Use the ``provider`` option within the
372372
:class:`Symfony\\Component\\Validator\\Constraints\\GroupSequenceProvider`
373373
attribute to link the entity with the provider class.
374374
3) **Autowiring or Manual Tagging:** If autowiring is enabled, your custom provider
@@ -385,7 +385,7 @@ Here's how you can achieve this:
385385
// ...
386386
use App\Validator\UserGroupProvider;
387387
388-
#[Assert\GroupSequenceProvider(class: UserGroupProvider::class)]
388+
#[Assert\GroupSequenceProvider(provider: UserGroupProvider::class)]
389389
class User
390390
{
391391
// ...

0 commit comments

Comments
 (0)