8000 bug #31537 [Workflow] use method marking store (noniagriconomie) · symfony/symfony@86bc1be · GitHub
[go: up one dir, main page]

Skip to content

Commit 86bc1be

Browse files
bug #31537 [Workflow] use method marking store (noniagriconomie)
This PR was merged into the 4.3 branch. Discussion ---------- [Workflow] use method marking store | Q | A | ------------- | --- | Branch? | 4.3 (related to deprecation of single/multiple marking store) | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | . | License | MIT | Doc PR | already documented I think the deprecation of old marking store, the single one in the statemachine, was not patched here Or did i miss something? Thank you Cc @lyrixx Commits ------- a219167 [Workflow] use method marking store
2 parents 8f62674 + a219167 commit 86bc1be

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