Browse Source

[Foundation] added Kernel::__clone()

Fabien Potencier 15 years ago
parent
commit
e3c2e40c06
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/Symfony/Foundation/Kernel.php

+ 11 - 0
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();