public function errorHandler($type, $message, $file, $line)
{
$msg = "{$message} in {$file}:{$line}";
if ($msg == $this->_lastErrorMessage) {
return;
}
$this->_lastErrorMessage = $msg;
$this->_logger->error($msg);
$this->eventDispatch('dingError', new ErrorInfo($type, $message, $file, $line));
return true;
}