Skip to content

Commit

Permalink
[VarDumper] add a tip about global dump() availability
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jan 19, 2015
1 parent 0615928 commit 4121dbd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/var_dumper/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ current PHP SAPI:
You'll also learn how to change the format or redirect the output to
wherever you want.

.. tip::

In order to have the ``dump()`` function always available when running
any PHP code, you can install it globally on your computer:

#. Run ``composer global require symfony/var-dumper``;
#. Add ``auto_prepend_file = ${HOME}/.composer/vendor/autoload.php``
to your ``php.ini`` file;
#. From time to time, run ``composer global update`` to have the latest
bug fixes.

DebugBundle and Twig Integration
--------------------------------

Expand Down

0 comments on commit 4121dbd

Please sign in to comment.