From cad6bf862d11deb7a708e20376b8964af0abd395 Mon Sep 17 00:00:00 2001 From: analogic Date: Fri, 25 May 2018 10:14:23 +0200 Subject: [PATCH 1/2] 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. --- workflow/dumping-workflows.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/dumping-workflows.rst b/workflow/dumping-workflows.rst index f6ab01c4d0c..d5c1d775fff 100644 --- a/workflow/dumping-workflows.rst +++ b/workflow/dumping-workflows.rst @@ -6,7 +6,7 @@ How to Dump Workflows To help you debug your workflows, you can dump a representation of your workflow with the use of a ``DumperInterface``. Use the ``GraphvizDumper`` to create a -PNG image of the workflow defined above:: +SVG image of the workflow defined above:: // dump-graph.php $dumper = new GraphvizDumper(); @@ -14,7 +14,7 @@ PNG image of the workflow defined above:: .. code-block:: terminal - $ php dump-graph.php | dot -Tpng -o graph.png + $ php dump-graph.php | dot -Tsvg -o graph.svg The result will look like this: @@ -25,7 +25,7 @@ Inside a Symfony application, you can dump the dot file with the .. code-block:: terminal - $ php bin/console workflow:dump name | dot -Tpng -o graph.png + $ php bin/console workflow:dump name | dot -Tsvg -o graph.svg .. note:: From 88e81284d668c4445eac375cb156a5a5ff669b98 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 25 May 2018 20:37:48 +0200 Subject: [PATCH 2/2] Minor reword --- workflow/dumping-workflows.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflow/dumping-workflows.rst b/workflow/dumping-workflows.rst index d5c1d775fff..9026e6f3abc 100644 --- a/workflow/dumping-workflows.rst +++ b/workflow/dumping-workflows.rst @@ -6,7 +6,7 @@ How to Dump Workflows To help you debug your workflows, you can dump a representation of your workflow with the use of a ``DumperInterface``. Use the ``GraphvizDumper`` to create a -SVG image of the workflow defined above:: +PNG or SVG image of the workflow defined above:: // dump-graph.php $dumper = new GraphvizDumper(); @@ -16,6 +16,9 @@ SVG image of the workflow defined above:: $ php dump-graph.php | dot -Tsvg -o graph.svg + # run this command if you prefer PNG images: + # $ php dump-graph.php | dot -Tpng -o graph.png + The result will look like this: .. image:: /_images/components/workflow/blogpost.png