Skip to content

Commit 7c26fe2

Browse files
analogicjaviereguiluz
authored andcommitted
Export workflow chart to SVG
It should be encouraged to use SVG since SVG is better format suited for vector graphics and widely supported now.
1 parent 47c1986 commit 7c26fe2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow/dumping-workflows.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
How to Dump Workflows
55
=====================
66

7-
To help you debug your workflows, you can dump a representation of your workflow with
8-
the use of a ``DumperInterface``. Use the ``GraphvizDumper`` to create a
9-
PNG image of the workflow defined above::
7+
To help you debug your workflows, you can dump a representation of your workflow
8+
with the use of a ``DumperInterface``. Use the ``GraphvizDumper`` to create a
9+
SVG image of the workflow defined above::
1010

1111
// dump-graph.php
1212
$dumper = new GraphvizDumper();
1313
echo $dumper->dump($definition);
1414

1515
.. code-block:: terminal
1616
17-
$ php dump-graph.php | dot -Tpng -o graph.png
17+
$ php dump-graph.php | dot -Tsvg -o graph.svg
1818
1919
The result will look like this:
2020

@@ -25,7 +25,7 @@ with the ``WorkflowDumpCommand``:
2525

2626
.. code-block:: terminal
2727
28-
$ php bin/console workflow:dump name | dot -Tpng -o graph.png
28+
$ php bin/console workflow:dump name | dot -Tsvg -o graph.svg
2929
3030
.. note::
3131

0 commit comments

Comments
 (0)