From 85a00c7dec955e5a3c8a7f2a7c8461c69631cf43 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Thu, 16 May 2013 21:20:25 +0200 Subject: [PATCH] removed unneeded configuration --- book/templating.rst | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/book/templating.rst b/book/templating.rst index 543b86f680e..46df6a78441 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -1340,43 +1340,9 @@ in a JavaScript string, use the ``js`` context: Debugging --------- -.. versionadded:: 2.0.9 - This feature is available as of Twig ``1.5.x``, which was first shipped - with Symfony 2.0.9. - When using PHP, you can use ``var_dump()`` if you need to quickly find the value of a variable passed. This is useful, for example, inside your controller. -The same can be achieved when using Twig by using the debug extension. This -needs to be enabled in the config: - -.. configuration-block:: - - .. code-block:: yaml - - # app/config/config.yml - services: - acme_hello.twig.extension.debug: - class: Twig_Extension_Debug - tags: - - { name: 'twig.extension' } - - .. code-block:: xml - - - - - - - - - .. code-block:: php - - // app/config/config.php - use Symfony\Component\DependencyInjection\Definition; - - $definition = new Definition('Twig_Extension_Debug'); - $definition->addTag('twig.extension'); - $container->setDefinition('acme_hello.twig.extension.debug', $definition); +The same can be achieved when using Twig thanks to the the debug extension. Template parameters can then be dumped using the ``dump`` function: