[Framework] disabled the bootstrap file when debug is true

This commit is contained in:
Fabien Potencier 2010-08-09 15:05:07 +02:00
parent ecea456c5b
commit fd705756d4

View File

@ -116,7 +116,9 @@ abstract class Kernel implements HttpKernelInterface, \Serializable
throw new \LogicException('The kernel is already booted.');
}
require_once __DIR__.'/bootstrap.php';
if (!$this->isDebug()) {
require_once __DIR__.'/bootstrap.php';
}
$this->bundles = $this->registerBundles();
$this->bundleDirs = $this->registerBundleDirs();