| @@ 136-143 (lines=8) @@ | ||
| 133 | * Finish it |
|
| 134 | * @return void |
|
| 135 | */ |
|
| 136 | public function end() |
|
| 137 | { |
|
| 138 | if ($messages = Logger::get('error')) { |
|
| 139 | foreach ($messages as $message) { |
|
| 140 | errorLog(new \ErrorException($message, 0, E_USER_ERROR)); |
|
| 141 | } |
|
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|
| 145 | ||
| @@ 182-196 (lines=15) @@ | ||
| 179 | /** |
|
| 180 | * @return void |
|
| 181 | */ |
|
| 182 | public function end() |
|
| 183 | { |
|
| 184 | if ($messages = Logger::get('error')) { |
|
| 185 | foreach ($messages as $message) { |
|
| 186 | errorLog(new \ErrorException($message, 0, E_USER_ERROR)); |
|
| 187 | } |
|
| 188 | } |
|
| 189 | ||
| 190 | // return code 1 for invalid behaviour of application |
|
| 191 | // if ($exception = $this->getException()) { |
|
| 192 | // echo $exception->getMessage(); |
|
| 193 | // exit(1); |
|
| 194 | // } |
|
| 195 | exit; |
|
| 196 | } |
|
| 197 | } |
|
| 198 | ||