Skip to content

Commit f517c2a

Browse files
committed
[Workflow] Fix eventsToDispatch parameter setup for StateMachine
1 parent aac97c1 commit f517c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StateMachine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
class StateMachine extends Workflow
2222
{
23-
public function __construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
23+
public function __construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed', array $eventsToDispatch = null)
2424
{
25-
parent::__construct($definition, $markingStore ?? new MethodMarkingStore(true), $dispatcher, $name);
25+
parent::__construct($definition, $markingStore ?? new MethodMarkingStore(true), $dispatcher, $name, $eventsToDispatch);
2626
}
2727
}

0 commit comments

Comments
 (0)