We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c1e20 commit 9c14995Copy full SHA for 9c14995
components/workflow.rst
@@ -44,8 +44,8 @@ these statuses are called **places**. You can define the workflow like this::
44
use Symfony\Component\Workflow\Workflow;
45
use Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore;
46
47
- $definition = new DefinitionBuilder()
48
- ->addPlaces(['draft', 'review', 'rejected', 'published'])
+ $definition = new DefinitionBuilder();
+ $definition->addPlaces(['draft', 'review', 'rejected', 'published'])
49
// Transitions are defined with a unique name, an origin place and a destination place
50
->addTransition(new Transition('to_review', 'draft', 'review'))
51
->addTransition(new Transition('publish', 'review', 'published'))
0 commit comments