From 4121dbd5379d0c48a5d7670c97ed18b8f6132738 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 19 Jan 2015 10:08:05 +0100 Subject: [PATCH] [VarDumper] add a tip about global dump() availability --- components/var_dumper/introduction.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/var_dumper/introduction.rst b/components/var_dumper/introduction.rst index 869c73fc6fe..05eff3e8849 100644 --- a/components/var_dumper/introduction.rst +++ b/components/var_dumper/introduction.rst @@ -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 --------------------------------