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

Commit dadea61

Browse files
Enable DebugBundle
1 parent 900fc9d commit dadea61

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)