Skip to content

Commit 8aa2fbb

Browse files
philwcxabbuh
authored andcommitted
Add pipe to dump command
Save creating an interim file (and cluttering up the directory) by using pipe to create the image file immediately.
1 parent 4c9cf1a commit 8aa2fbb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

workflow/dumping-workflows.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ PNG image of the workflow defined above::
1414

1515
.. code-block:: terminal
1616
17-
$ php dump-graph.php > out.dot
18-
$ dot -Tpng out.dot -o graph.png
17+
$ php dump-graph.php | dot -Tpng -o graph.png
1918
2019
The result will look like this:
2120

@@ -26,8 +25,7 @@ with the ``WorkflowDumpCommand``:
2625

2726
.. code-block:: terminal
2827
29-
$ php bin/console workflow:dump name > out.dot
30-
$ dot -Tpng out.dot -o graph.png
28+
$ php bin/console workflow:dump name | dot -Tpng -o graph.png
3129
3230
.. note::
3331

0 commit comments

Comments
 (0)