Skip to content

Commit 7161148

Browse files
authored
feature: update the exemple
1 parent c7a0fce commit 7161148

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)