Skip to content

Commit 30a1a09

Browse files
[Workflow] use method marking store
1 parent 4d3d33b commit 30a1a09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StateMachine.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Workflow;
1313

1414
use Symfony\Component\Workflow\MarkingStore\MarkingStoreInterface;
15-
use Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore;
15+
use Symfony\Component\Workflow\MarkingStore\MethodMarkingStore;
1616
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1717

1818
/**
@@ -22,6 +22,6 @@ class StateMachine extends Workflow
2222
{
2323
public function __construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
2424
{
25-
parent::__construct($definition, $markingStore ?: new SingleStateMarkingStore(), $dispatcher, $name);
25+
parent::__construct($definition, $markingStore ?: new MethodMarkingStore(true, 'marking'), $dispatcher, $name);
2626
}
2727
}

0 commit comments

Comments
 (0)