src/TwigPresenter.php
private function displaySuccess(Request $request,Response $response){
        $data=$response->getContent();
        if($data==null){
            $data=array();
        }
        $controllerName=str_replace('\\', '/', $request->getConfig()->getValue('class'));
        $methodName=$request->getConfig()->getValue('method');
        echo $this->twig->render($controllerName.'/'.$methodName.'.twig', $data);
    }
private function displaySuccess(Request $request,Response $response){
        $data=$response->getContent();
        if($data==null){
            $data=array();
        }
        $controllerName=str_replace('\\', '/', $request->getConfig()->getValue('class'));
        $methodName=$request->getConfig()->getValue('method');
        echo $this->twig->render($controllerName.'/'.$methodName.'.twig', $data);
    }
private function displaySuccess ( Request $ request , Response $ response ) { $ data = $ response -> getContent ( ) ; if ( $ data == null ) { $ data = array ( ) ; } $ controllerName = str_replace ( '\\' , '/' , $ request -> getConfig ( ) -> getValue ( 'class' ) ) ; $ methodName = $ request -> getConfig ( ) -> getValue ( 'method' ) ; echo $ this -> twig -> render ( $ controllerName . '/' . $ methodName . '.twig' , $ data ) ; }
Support status code 2XX.

@param Request $request
@param Response $response
Support status code 2XX .