Skip to content

Commit 78d84e7

Browse files
committed
minor #9817 Export workflow chart to SVG (analogic, javiereguiluz)
This PR was submitted for the 4.0 branch but it was merged into the 3.4 branch instead (closes #9817). Discussion ---------- 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- c1fd166 Minor reword 7c26fe2 Export workflow chart to SVG
2 parents 47c1986 + c1fd166 commit 78d84e7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

workflow/dumping-workflows.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
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+
PNG or 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
18+
19+
# run this command if you prefer PNG images:
20+
# $ php dump-graph.php | dot -Tpng -o graph.png
1821
1922
The result will look like this:
2023

@@ -25,7 +28,7 @@ with the ``WorkflowDumpCommand``:
2528

2629
.. code-block:: terminal
2730
28-
$ php bin/console workflow:dump name | dot -Tpng -o graph.png
31+
$ php bin/console workflow:dump name | dot -Tsvg -o graph.svg
2932
3033
.. note::
3134

0 commit comments

Comments
 (0)