File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/Symfony/Component/VarDumper Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -349,3 +349,18 @@ OptionsResolver
349
349
// throws InvalidOptionsException
350
350
$resolver->resolve(array('port' => '25'));
351
351
```
352
+
353
+ VarDumper and DebugBundle
354
+ -------------------------
355
+
356
+ The component and the bundle are new to Symfony 2.6. We encourage you
357
+ to enable the bundle in your ` app/AppKernel.php ` for the * dev* or * test*
358
+ environments. Just add this line before loading the ` WebProfilerBundle ` :
359
+
360
+ ```php
361
+ $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
362
+ ```
363
+
364
+ Then enjoy dumping variables by calling ` dump($var) ` anywhere in your PHP
365
+ and ` {% dump var %} ` or ` {{ dump(var) }} ` in Twig. Dumps are displayed
366
+ ** in the web debug toolbar** .
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \VarDumper \Dumper \CliDumper ;
16
16
use Symfony \Component \VarDumper \Dumper \HtmlDumper ;
17
17
18
+ // Load the global dump() function
19
+ require_once __DIR__ .'/Resources/functions/dump.php ' ;
20
+
18
21
/**
19
22
* @author Nicolas Grekas <[email protected] >
20
23
*/
You can’t perform that action at this time.
0 commit comments