@@ -42,8 +42,9 @@ use instead of e.g. :phpfunction:`var_dump`. By using it, you'll gain:
4242For example::
4343
4444 require __DIR__.'/vendor/autoload.php';
45+
4546 // create a variable, which could be anything!
46- $someVar = ' ...' ;
47+ $someVar = ...;
4748
4849 dump($someVar);
4950
@@ -70,14 +71,14 @@ current PHP SAPI:
7071 #. Run ``composer global require symfony/var-dumper ``;
7172 #. Add ``auto_prepend_file = ${HOME}/.composer/vendor/autoload.php ``
7273 to your ``php.ini `` file;
73- #. From time to time, run ``composer global update `` to have the latest
74- bug fixes.
74+ #. From time to time, run ``composer global update symfony/var-dumper ``
75+ to have the latest bug fixes.
7576
7677DebugBundle and Twig Integration
7778--------------------------------
7879
79- The `` DebugBundle `` allows greater integration of the component into the
80- Symfony full stack framework. It is enabled by default in the *dev * and *test *
80+ The DebugBundle allows greater integration of the component into the Symfony
81+ full- stack framework. It is enabled by default in the *dev * and *test *
8182environment of the standard edition since version 2.6.
8283
8384Since generating (even debug) output in the controller or in the model
@@ -98,29 +99,9 @@ Choosing between both is mostly a matter of personal taste, still:
9899 be suited to your use case (e.g. you shouldn't use it in an HTML
99100 attribute or a ``<script> `` tag).
100101
101- By default for nested variables, dumps are limited to a subset of their
102- original value. You can configure the limits in terms of:
103-
104- * maximum number of items to dump,
105- * maximum string length before truncation.
106-
107- .. configuration-block ::
108-
109- .. code-block :: yaml
110-
111- debug :
112- max_items : 250
113- max_string_length : -1
114-
115- .. code-block :: xml
116-
117- <?xml version =" 1.0" encoding =" UTF-8" ?>
118- <container xmlns =" http://symfony.com/schema/dic/debug"
119- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
120- xsi : schemaLocation =" http://symfony.com/schema/dic/debug http://symfony.com/schema/dic/debug/debug-1.0.xsd" >
121-
122- <config max-items =" 250" max-string-length =" -1" />
123- </container >
102+ This behaviour can be changed by configuring the ``dump.dump_destination ``
103+ option. Read more about this and other options in
104+ :doc: `the DebugBundle configuration reference </reference/configuration/debug >`.
124105
125106Using the VarDumper Component in your PHPUnit Test Suite
126107--------------------------------------------------------
0 commit comments