Skip to content

Commit e48a210

Browse files
committed
minor #8227 Add pipe to dump command (philwc)
This PR was submitted for the 3.3 branch but it was merged into the 3.2 branch instead (closes #8227). Discussion ---------- Add pipe to dump command Save creating an interim file (and cluttering up the directory) by using pipe to create the image file immediately. Commits ------- 8aa2fbb Add pipe to dump command
2 parents 4c9cf1a + 8aa2fbb commit e48a210

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)