Skip to content

Commit 279a9c1

Browse files
committed
[Workflow] Use subject to fetch state_machine
1 parent 0b5a5c6 commit 279a9c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflow/state-machines.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ you can get this state machine by injecting the Workflow registry service::
205205
$this->workflows = $workflows;
206206
}
207207

208-
public function someMethod()
208+
public function someMethod($subject)
209209
{
210-
$stateMachine = $this->workflows->get('pull_request');
210+
$stateMachine = $this->workflows->get($subject, 'pull_request');
211211
// ...
212212
}
213213

0 commit comments

Comments
 (0)