diff --git a/workflow/workflow-and-state-machine.rst b/workflow/workflow-and-state-machine.rst index f6b93fa693c..09bbbd8befa 100644 --- a/workflow/workflow-and-state-machine.rst +++ b/workflow/workflow-and-state-machine.rst @@ -267,13 +267,13 @@ machine type, use ``camelCased workflow name + StateMachine``:: { public function __construct( // Symfony will inject the 'pull_request' state machine configured before - private WorkflowInterface $pullRequestWorkflow, + private WorkflowInterface $pullRequestStateMachine, ) { } public function someMethod(PullRequest $pullRequest): void { - $this->pullRequestWorkflow->apply($pullRequest, 'wait_for_review', [ + $this->pullRequestStateMachine->apply($pullRequest, 'wait_for_review', [ 'log_comment' => 'My logging comment for the wait for review transition.', ]); // ...