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

Enable DebugBundle #710

Merged
merged 1 commit into from
Sep 25, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
10 changes: 10 additions & 0 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down