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 a219167

Browse filesBrowse files
[Workflow] use method marking store
1 parent e606ac1 commit a219167
Copy full SHA for a219167

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.