Explorar o código

[Framework] disabled the bootstrap file when debug is true

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
fd705756d4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/Symfony/Framework/Kernel.php

+ 3 - 1
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();