From 5b749b84c3e5a9e1ab9a5e88c883548ab85621d3 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Thu, 30 Jul 2015 18:27:30 +0200 Subject: [PATCH] Add DebugBundle config reference --- components/var_dumper/introduction.rst | 51 +++-------------- reference/configuration/debug.rst | 76 ++++++++++++++++++++++++++ reference/index.rst | 1 + reference/map.rst.inc | 1 + 4 files changed, 87 insertions(+), 42 deletions(-) create mode 100644 reference/configuration/debug.rst diff --git a/components/var_dumper/introduction.rst b/components/var_dumper/introduction.rst index 086695c471c..e4875649516 100644 --- a/components/var_dumper/introduction.rst +++ b/components/var_dumper/introduction.rst @@ -42,8 +42,9 @@ use instead of e.g. :phpfunction:`var_dump`. By using it, you'll gain: For example:: require __DIR__.'/vendor/autoload.php'; + // create a variable, which could be anything! - $someVar = '...'; + $someVar = ...; dump($someVar); @@ -70,14 +71,14 @@ current PHP SAPI: #. 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. + #. From time to time, run ``composer global update symfony/var-dumper`` + to have the latest bug fixes. DebugBundle and Twig Integration -------------------------------- -The ``DebugBundle`` allows greater integration of the component into the -Symfony full stack framework. It is enabled by default in the *dev* and *test* +The DebugBundle allows greater integration of the component into the Symfony +full-stack framework. It is enabled by default in the *dev* and *test* environment of the standard edition since version 2.6. Since generating (even debug) output in the controller or in the model @@ -98,43 +99,9 @@ Choosing between both is mostly a matter of personal taste, still: be suited to your use case (e.g. you shouldn't use it in an HTML attribute or a ``