Skip to content

Commit 4226fc2

Browse files
committed
feature #4883 Global dump (nicolas-grekas)
This PR was merged into the 2.6 branch. Discussion ---------- Global dump | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | - Commits ------- 4121dbd [VarDumper] add a tip about global dump() availability
2 parents 9ec09ee + 4121dbd commit 4226fc2

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)