From 28625a5d5c3298470781fb482589e0a7b96b3938 Mon Sep 17 00:00:00 2001 From: Phil Wright- Christie Date: Wed, 26 Jul 2017 09:28:53 +0100 Subject: [PATCH] Add pipe to dump command Save creating an interim file (and cluttering up the directory) by using pipe to create the image file immediately. --- workflow/dumping-workflows.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/workflow/dumping-workflows.rst b/workflow/dumping-workflows.rst index 56b1d1f7d56..0e784062c41 100644 --- a/workflow/dumping-workflows.rst +++ b/workflow/dumping-workflows.rst @@ -14,8 +14,7 @@ PNG image of the workflow defined above:: .. code-block:: terminal - $ php dump-graph.php > out.dot - $ dot -Tpng out.dot -o graph.png + $ php dump-graph.php | dot -Tpng -o graph.png The result will look like this: @@ -26,8 +25,7 @@ with the ``WorkflowDumpCommand``: .. code-block:: terminal - $ php bin/console workflow:dump name > out.dot - $ dot -Tpng out.dot -o graph.png + $ php bin/console workflow:dump name | dot -Tpng -o graph.png .. note::