Skip to content

Commit 297275c

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Remove $context argument from example code Update dumping-workflows.rst
2 parents fa7e98c + bd2c2c7 commit 297275c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

serializer/custom_normalizer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
4747
return $data;
4848
}
4949

50-
public function supportsNormalization($data, $format = null, array $context = [])
50+
public function supportsNormalization($data, $format = null)
5151
{
5252
return $data instanceof Topic;
5353
}

workflow/dumping-workflows.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ Inside a Symfony application, you can dump the files with those commands using
5050
$ php bin/console workflow:dump workflow_name | dot -Tsvg -o workflow_name.svg
5151
$ php bin/console workflow:dump workflow_name --dump-format=puml | java -jar plantuml.jar -p > workflow_name.png
5252
53+
# highlight 'place1' and 'place2' in the dumped workflow
54+
$ php bin/console workflow:dump name place1 place2 | dot -Tsvg -o graph.svg
55+
5356
.. note::
5457

5558
The ``dot`` command is part of Graphviz. You can download it and read

0 commit comments

Comments
 (0)