| @@ 143-150 (lines=8) @@ | ||
| 140 | * Finish it |
|
| 141 | * @return void |
|
| 142 | */ |
|
| 143 | public function end() |
|
| 144 | { |
|
| 145 | if ($messages = Logger::get('error')) { |
|
| 146 | foreach ($messages as $message) { |
|
| 147 | errorLog(new \ErrorException($message, 0, E_USER_ERROR)); |
|
| 148 | } |
|
| 149 | } |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| @@ 92-106 (lines=15) @@ | ||
| 89 | /** |
|
| 90 | * @return void |
|
| 91 | */ |
|
| 92 | public function end() |
|
| 93 | { |
|
| 94 | if ($messages = Logger::get('error')) { |
|
| 95 | foreach ($messages as $message) { |
|
| 96 | errorLog(new \ErrorException($message, 0, E_USER_ERROR)); |
|
| 97 | } |
|
| 98 | } |
|
| 99 | ||
| 100 | // return code 1 for invalid behaviour of application |
|
| 101 | // if ($exception = $this->getException()) { |
|
| 102 | // echo $exception->getMessage(); |
|
| 103 | // exit(1); |
|
| 104 | // } |
|
| 105 | exit; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||