diff --git a/app/AppKernel.php b/app/AppKernel.php index c35b166ce9..b4880d9733 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -19,6 +19,7 @@ public function registerBundles() ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { + $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); diff --git a/app/autoload.php b/app/autoload.php index 70526bb5e4..05b3e63fcb 100644 --- a/app/autoload.php +++ b/app/autoload.php @@ -2,6 +2,16 @@ use Doctrine\Common\Annotations\AnnotationRegistry; use Composer\Autoload\ClassLoader; +use Symfony\Component\VarDumper\VarDumper; + +if (!function_exists('dump')) { + function dump($var) + { + foreach (func_get_args() as $var) { + VarDumper::dump($var); + } + } +} /** * @var ClassLoader $loader