Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 5c05335

Browse files
committed
feature #710 Enable DebugBundle (nicolas-grekas)
This PR was merged into the 2.6-dev branch. Discussion ---------- Enable DebugBundle This enables the DebugBundle as proposed in symfony/symfony#10640 Commits ------- dadea61 Enable DebugBundle
2 parents 1d06b4a + dadea61 commit 5c05335

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/AppKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function registerBundles()
1919
);
2020

2121
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
22+
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
2223
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
2324
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
2425
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();

app/autoload.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
use Doctrine\Common\Annotations\AnnotationRegistry;
44
use Composer\Autoload\ClassLoader;
5+
use Symfony\Component\VarDumper\VarDumper;
6+
7+
if (!function_exists('dump')) {
8+
function dump($var)
9+
{
10+
foreach (func_get_args() as $var) {
11+
VarDumper::dump($var);
12+
}
13+
}
14+
}
515

616
/**
717
* @var ClassLoader $loader

0 commit comments

Comments
 (0)