public function view($template, $data = [])
    {
        $html = ViewService::getEngine()->render($template, $data);
        $this->message->setBody($html, 'text/html');
        return $this;
    }
public function view($template, $data = [])
    {
        $html = ViewService::getEngine()->render($template, $data);
        $this->message->setBody($html, 'text/html');
        return $this;
    }
public function view ( $ template , $ data = [ ] ) { $ html = ViewService :: getEngine ( ) -> render ( $ template , $ data ) ; $ this -> message -> setBody ( $ html , 'text/html' ) ; return $ this ; }
set message body with twig template

@param string $template
@param array  $data
@return $this
set message body with twig template