8000 [Workflow] WIP Create MarkingHistoryStore to allow logging of an entity's states by ChangePlaces · Pull Request #28265 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Workflow] WIP Create MarkingHistoryStore to allow logging of an entity's states #28265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update StateMachine.php
  • Loading branch information
ChangePlaces authored Aug 25, 2018
9797
commit 04511dd5e1184513b7c6827191942f23403aa443
4 changes: 2 additions & 2 deletions src/Symfony/Component/Workflow/StateMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/
class StateMachine extends Workflow
{
public function __construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
public function __construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed', MarkingHistoryStore $markingHistoryStore = null)
{
parent::__construct($definition, $markingStore ?: new SingleStateMarkingStore(), $dispatcher, $name);
parent::__construct($definition, $markingStore ?: new SingleStateMarkingStore(), $dispatcher, $name, $markingHistoryStore);
}
}
0