Skip to content

Commit df0a01a

Browse files
committed
Add workflow entered event documentation
1 parent 5d990f3 commit df0a01a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ class BlogPostWorkflowSubscriber
167167
*/
168168
public function onEnter($event) {}
169169

170+
/**
171+
* Handle workflow entered event.
172+
*/
173+
public function onEntered($event) {}
174+
170175
/**
171176
* Register the listeners for the subscriber.
172177
*
@@ -193,6 +198,11 @@ class BlogPostWorkflowSubscriber
193198
'Brexis\LaravelWorkflow\Events\EnterEvent',
194199
'App\Listeners\BlogPostWorkflowSubscriber@onEnter'
195200
);
201+
202+
$events->listen(
203+
'Brexis\LaravelWorkflow\Events\EnteredEvent',
204+
'App\Listeners\BlogPostWorkflowSubscriber@onEntered'
205+
);
196206
}
197207

198208
}

0 commit comments

Comments
 (0)