mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-25 16:14:59 +00:00
Add TransitionHasSignerIfSignature validator
Introduced a new validator `TransitionHasSignerIfSignature` to enforce that a signature transition must have a designated signer. Included related tests, updated DTO annotations, and added translations for new validation messages.
This commit is contained in:
@@ -16,6 +16,7 @@ use Chill\MainBundle\Entity\UserGroup;
|
||||
use Chill\MainBundle\Entity\Workflow\EntityWorkflow;
|
||||
use Chill\MainBundle\Workflow\Validator\TransitionHasDestineeIfIsSentExternal;
|
||||
use Chill\MainBundle\Workflow\Validator\TransitionHasDestUserIfRequired;
|
||||
use Chill\MainBundle\Workflow\Validator\TransitionHasSignerIfSignature;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdParty;
|
||||
use Chill\ThirdPartyBundle\Validator\ThirdPartyHasEmail;
|
||||
@@ -28,6 +29,7 @@ use Symfony\Component\Workflow\Transition;
|
||||
*/
|
||||
#[TransitionHasDestineeIfIsSentExternal]
|
||||
#[TransitionHasDestUserIfRequired]
|
||||
#[TransitionHasSignerIfSignature]
|
||||
class WorkflowTransitionContextDTO
|
||||
{
|
||||
/**
|
||||
|
Reference in New Issue
Block a user