Skip to content

Commit 9bbce41

Browse files
[Workflow] Improve and fix
1 parent ab3b0c9 commit 9bbce41

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy