| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function haltHttp($errorInfo = []) |
||
| 23 | { |
||
| 24 | $logger = new \WebServCo\Framework\FileLogger( |
||
| 25 | 'error', |
||
| 26 | $this->config()->get('app/path/log'), |
||
| 27 | $this->request() |
||
| 28 | ); |
||
| 29 | $logger->error( |
||
| 30 | sprintf('Error: %s in %s:%s', $errorInfo['message'], $errorInfo['file'], $errorInfo['line']), |
||
| 31 | [] /* $errorInfo */ |
||
| 32 | ); |
||
| 33 | return parent::haltHttp($errorInfo); |
||
| 34 | } |
||
| 44 |