File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ Here's how you can achieve this:
368
368
1) **Define a Separate Group Provider Class: ** You can create a class that
369
369
implements the :class: `Symfony\\ Component\\ Validator\\ GroupProviderInterface `
370
370
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
372
372
:class: `Symfony\\ Component\\ Validator\\ Constraints\\ GroupSequenceProvider `
373
373
attribute to link the entity with the provider class.
374
374
3) **Autowiring or Manual Tagging: ** If autowiring is enabled, your custom provider
@@ -385,7 +385,7 @@ Here's how you can achieve this:
385
385
// ...
386
386
use App\Validator\UserGroupProvider;
387
387
388
- #[Assert\GroupSequenceProvider(class : UserGroupProvider::class)]
388
+ #[Assert\GroupSequenceProvider(provider : UserGroupProvider::class)]
389
389
class User
390
390
{
391
391
// ...
You can’t perform that action at this time.
0 commit comments