public function found(array $data): Response
    {
        $view = $data['view'] ?? '';
        $templateVars = $data['vars'] ?? [];
        $this->response->setBody(
            $this->renderer->render($view, $templateVars)
        );
        return $this->response;
    }
public function found(array $data): Response
    {
        $view = $data['view'] ?? '';
        $templateVars = $data['vars'] ?? [];
        $this->response->setBody(
            $this->renderer->render($view, $templateVars)
        );
        return $this->response;
    }
public function found ( array $ data ) : Response { $ view = $ data [ 'view' ] ?? '' ; $ templateVars = $ data [ 'vars' ] ?? [ ] ; $ this -> response -> setBody ( $ this -> renderer -> render ( $ view , $ templateVars ) ) ; return $ this -> response ; }
Renders view defined in data array and passes it to http-responder.

@param array $data
@return Response
Renders view defined in data array and passes it to http - responder .