Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce8e74e

Browse files
committed
[Workflow] Fix eventsToDispatch parameter setup for StateMachine
1 parent 060d328 commit ce8e74e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Workflow/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)