8000 [Workflow] use method marking store · symfony/symfony@a219167 · GitHub
[go: up one dir, main page]

Skip to content

Commit a219167

Browse files
[Workflow] use method marking store
1 parent e606ac1 commit a219167

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
@@ -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)
0