Skip to content

Commit

Permalink
feature #4883 Global dump (nicolas-grekas)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed Jan 30, 2015
2 parents 9ec09ee + 4121dbd commit 4226fc2
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 4226fc2

Please sign in to comment.