| @@ 57-67 (lines=11) @@ | ||
| 54 | * |
|
| 55 | * @result void |
|
| 56 | */ |
|
| 57 | public function __construct($environment = 'devel', $debug = true) |
|
| 58 | { |
|
| 59 | $this->environment = $environment; |
|
| 60 | $this->debug = (bool)$debug; |
|
| 61 | ||
| 62 | $this->loaded = false; |
|
| 63 | ||
| 64 | if ($this->debug) { |
|
| 65 | $this->startTime = microtime(true); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Clone application |
|
| @@ 76-84 (lines=9) @@ | ||
| 73 | * |
|
| 74 | * @return void |
|
| 75 | */ |
|
| 76 | public function __clone() |
|
| 77 | { |
|
| 78 | if ($this->debug) { |
|
| 79 | $this->startTime = microtime(true); |
|
| 80 | } |
|
| 81 | ||
| 82 | $this->loaded = false; |
|
| 83 | $this->container = null; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Default config path |
|