Beispiel #1
0
 /**
  * Write error to document
  *
  * @param  ErrorEvent $event
  * @return void
  */
 public function onFileError(ErrorEvent $event)
 {
     $this->xmlWriter->startElement('error');
     $this->xmlWriter->writeElement('description', $event->getMessage());
     $this->xmlWriter->writeElement('file', $event->getFile()->getPath());
     $this->xmlWriter->endElement();
 }
Beispiel #2
0
 /**
  * Write error as one line
  *
  * @param  ErrorEvent $event
  * @return void
  */
 public function onFileError(ErrorEvent $event)
 {
     $this->write("<error>[ERROR] %s in %s</error>\n", $event->getMessage(), $event->getFile()->getPath());
 }