Skip to content

Commit 32f4e4a

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/var_dumper/introduction.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ 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, you can install
68+
it globally on your dev environment. Just follow these steps: run
69+
``composer global require symfony/var-dumper`` then add
70+
``auto_prepend_file = ${HOME}/.composer/vendor/autoload.php``
71+
to your ``php.ini`` file. Don't forget to run ``composer global update``
72+
from time to time to keep up with the latest fixes.
73+
6574
DebugBundle and Twig Integration
6675
--------------------------------
6776

0 commit comments

Comments
 (0)