From fd705756d4162fbad37119a7e99ece35fb734263 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 9 Aug 2010 15:05:07 +0200 Subject: [PATCH] [Framework] disabled the bootstrap file when debug is true --- src/Symfony/Framework/Kernel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Framework/Kernel.php b/src/Symfony/Framework/Kernel.php index ae00d2c855..f18069175c 100644 --- a/src/Symfony/Framework/Kernel.php +++ b/src/Symfony/Framework/Kernel.php @@ -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();