Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 86bc1be

Browse filesBrowse files
bug symfony#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
Copy full SHA for 86bc1be

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Workflow/StateMachine.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/StateMachine.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.