diff --git a/src/Symfony/Foundation/Kernel.php b/src/Symfony/Foundation/Kernel.php index 5065575b58..b9337692f6 100644 --- a/src/Symfony/Foundation/Kernel.php +++ b/src/Symfony/Foundation/Kernel.php @@ -66,6 +66,17 @@ abstract class Kernel implements HttpKernelInterface, \Serializable } } + public function __clone() + { + if ($this->debug) { + $this->startTime = microtime(true); + } + + $this->booted = false; + $this->container = null; + $this->request = null; + } + abstract public function registerRootDir(); abstract public function registerBundles();