public function logParserError($type, $code, $line, $variables = array())
    {
        $message = $this->__($code, $variables);
        $this->log($message, LogLevel::ERROR);
        $this->dispatch(
            'parser.log',
            LogEvent::createInstance($this)
                ->setMessage($message)
                ->setType($type)
                ->setCode($code)
                ->setLine($line)
        );
    }
public function logParserError($type, $code, $line, $variables = array())
    {
        $message = $this->__($code, $variables);
        $this->log($message, LogLevel::ERROR);
        $this->dispatch(
            'parser.log',
            LogEvent::createInstance($this)
                ->setMessage($message)
                ->setType($type)
                ->setCode($code)
                ->setLine($line)
        );
    }
public function logParserError ( $ type , $ code , $ line , $ variables = array ( ) ) { $ message = $ this -> __ ( $ code , $ variables ) ; $ this -> log ( $ message , LogLevel :: ERROR ) ; $ this -> dispatch ( 'parser.log' , LogEvent :: createInstance ( $ this ) -> setMessage ( $ message ) -> setType ( $ type ) -> setCode ( $ code ) -> setLine ( $ line ) ) ; }
Dispatches a parser error to be logged.

@param string   $type      The logging priority as string
@param string   $code      The message to log.
@param string   $line      The line number where the error occurred..
@param string[] $variables an array with message substitution variables.

@return void
Dispatches a parser error to be logged .