Skip to content
Merged
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
4 changes: 2 additions & 2 deletions components/workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ are trying to use it with::
$newsletterWorkflow = ...

$registry = new Registry();
$registry->addWorkflow($blogWorkflow, BlogPost::class);
$registry->addWorkflow($newsletterWorkflow, Newsletter::class);
$registry->addWorkflow($blogWorkflow, new InstanceOfSupportStrategy(BlogPost::class));
$registry->addWorkflow($newsletterWorkflow, new InstanceOfSupportStrategy(Newsletter::class));

.. versionadded:: 4.1
The ``addWorkflow()`` method was introduced in Symfony 4.1. In previous
Expand Down