Skip to content

Commit

Permalink
[Foundation] added Kernel::__clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 10, 2010
1 parent c11b707 commit e3c2e40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Symfony/Foundation/Kernel.php
Expand Up @@ -66,6 +66,17 @@ public function __construct($environment, $debug)
}
}

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();
Expand Down

0 comments on commit e3c2e40

Please sign in to comment.