Skip to content

Commit 6a6f05b

Browse files
committed
minor #9039 [Workflow] feature: update the exemple (Simperfit)
This PR was merged into the master branch. Discussion ---------- [Workflow] feature: update the exemple First fix for #9017 by updating the exemples. Commits ------- 7161148 feature: update the exemple
2 parents 473a1a5 + 7161148 commit 6a6f05b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/workflow.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ are trying to use it with::
7070
$newsletterWorkflow = ...
7171

7272
$registry = new Registry();
73-
$registry->add($blogWorkflow, BlogPost::class);
74-
$registry->add($newsletterWorkflow, Newsletter::class);
73+
$registry->addWorkflow($blogWorkflow, BlogPost::class);
74+
$registry->addWorkflow($newsletterWorkflow, Newsletter::class);
75+
76+
.. versionadded:: 4.1
77+
The ``addWorkflow()`` method was introduced in Symfony 4.1. In previous
78+
Symfony versions it was called ``add()``.
7579

7680
Usage
7781
-----

0 commit comments

Comments
 (0)