Skip to content

Commit 3867fb2

Browse files
committed
minor #37822 [Workflow] Improve and fix (noniagriconomie)
This PR was merged into the 5.2-dev branch. Discussion ---------- [Workflow] Improve and fix | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #37815 review | License | MIT | Doc PR | # Hi @lyrixx thx for such fast PR take over :) while reviewing i found this typo i think also i reordered the constants inside the events class to map with the order of fireing event Commits ------- 9bbce41 [Workflow] Improve and fix
2 parents 6805d1d + 9bbce41 commit 3867fb2

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@
350350
<xsd:restriction base="xsd:string">
351351
<xsd:enumeration value="" />
352352
<xsd:enumeration value="workflow.leave" />
353-
<xsd:enumeration value="workflow.leave" />
354353
<xsd:enumeration value="workflow.transition" />
355354
<xsd:enumeration value="workflow.enter" />
356355
<xsd:enumeration value="workflow.entered" />

src/Symfony/Component/Workflow/WorkflowEvents.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ final class WorkflowEvents
3131
const GUARD = 'workflow.guard';
3232

3333
/**
34-
* @Event("Symfony\Component\Workflow\Event\AnnounceEvent")
34+
* @Event("Symfony\Component\Workflow\Event\LeaveEvent")
3535
*/
36-
const ANNOUNCE = 'workflow.announce';
36+
const LEAVE = 'workflow.leave';
3737

3838
/**
39-
* @Event("Symfony\Component\Workflow\Event\CompletedEvent")
39+
* @Event("Symfony\Component\Workflow\Event\TransitionEvent")
4040
*/
41-
const COMPLETED = 'workflow.completed';
41+
const TRANSITION = 'workflow.transition';
4242

4343
/**
4444
* @Event("Symfony\Component\Workflow\Event\EnterEvent")
@@ -51,14 +51,14 @@ final class WorkflowEvents
5151
const ENTERED = 'workflow.entered';
5252

5353
/**
54-
* @Event("Symfony\Component\Workflow\Event\LeaveEvent")
54+
* @Event("Symfony\Component\Workflow\Event\CompletedEvent")
5555
*/
56-
const LEAVE = 'workflow.leave';
56+
const COMPLETED = 'workflow.completed';
5757

5858
/**
59-
* @Event("Symfony\Component\Workflow\Event\TransitionEvent")
59+
* @Event("Symfony\Component\Workflow\Event\AnnounceEvent")
6060
*/
61-
const TRANSITION = 'workflow.transition';
61+
const ANNOUNCE = 'workflow.announce';
6262

6363
/**
6464
* Event aliases.

0 commit comments

Comments
 (0)