src/Loops/Service/WebCore.php
private function display($element, Request $request, Response $response) {
        $loops = $this->getLoops();
        $renderer = $loops->getService("renderer");

        $appearance = [];

        if($request->isAjax()) {
            $renderer->addExtraAppearance("ajax");
        }

        $renderer->addExtraAppearance((string)$response->status_code);

        return $renderer->render($element, $appearance);
    }
private function display($element, Request $request, Response $response) {
        $loops = $this->getLoops();
        $renderer = $loops->getService("renderer");

        $appearance = [];

        if($request->isAjax()) {
            $renderer->addExtraAppearance("ajax");
        }

        $renderer->addExtraAppearance((string)$response->status_code);

        return $renderer->render($element, $appearance);
    }
private function display ( $ element , Request $ request , Response $ response ) { $ loops = $ this -> getLoops ( ) ; $ renderer = $ loops -> getService ( "renderer" ) ; $ appearance = [ ] ; if ( $ request -> isAjax ( ) ) { $ renderer -> addExtraAppearance ( "ajax" ) ; } $ renderer -> addExtraAppearance ( ( string ) $ response -> status_code ) ; return $ renderer -> render ( $ element , $ appearance ) ; }
Renders an object with the renderer
Renders an object with the renderer