Skip to content

Commit 4121dbd

Browse files
[VarDumper] add a tip about global dump() availability
1 parent 0615928 commit 4121dbd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/var_dumper/introduction.rst

+11
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ current PHP SAPI:
6262
You'll also learn how to change the format or redirect the output to
6363
wherever you want.
6464

65+
.. tip::
66+
67+
In order to have the ``dump()`` function always available when running
68+
any PHP code, you can install it globally on your computer:
69+
70+
#. Run ``composer global require symfony/var-dumper``;
71+
#. Add ``auto_prepend_file = ${HOME}/.composer/vendor/autoload.php``
72+
to your ``php.ini`` file;
73+
#. From time to time, run ``composer global update`` to have the latest
74+
bug fixes.
75+
6576
DebugBundle and Twig Integration
6677
--------------------------------
6778

0 commit comments

Comments
 (0)