[Foundation] added Kernel::__clone()

This commit is contained in:
Fabien Potencier 2010-06-10 17:54:39 +02:00
parent c11b707967
commit e3c2e40c06
1 changed files with 11 additions and 0 deletions

View File

@ -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();