src/Router/Router.php
public function getResponse()
    {
        $this->matcher = new UrlMatcher($this->routes, $this->context);

        $this->parameters = $this->matcher->matchRequest($this->request);

        $controller = $this->parameters['_controller'];
        if ($controller === null) {
            $response = new Response();
        } else {
            $this->controller = new $controller($this->request, $this->parameters);
            $response = $this->controller->handler();
        }

        return $response;
    }
public function getResponse()
    {
        $this->matcher = new UrlMatcher($this->routes, $this->context);

        $this->parameters = $this->matcher->matchRequest($this->request);

        $controller = $this->parameters['_controller'];
        if ($controller === null) {
            $response = new Response();
        } else {
            $this->controller = new $controller($this->request, $this->parameters);
            $response = $this->controller->handler();
        }

        return $response;
    }
public function getResponse ( ) { $ this -> matcher = new UrlMatcher ( $ this -> routes , $ this -> context ) ; $ this -> parameters = $ this -> matcher -> matchRequest ( $ this -> request ) ; $ controller = $ this -> parameters [ '_controller' ] ; if ( $ controller === null ) { $ response = new Response ( ) ; } else { $ this -> controller = new $ controller ( $ this -> request , $ this -> parameters ) ; $ response = $ this -> controller -> handler ( ) ; } return $ response ; }
get response in controller's handler

@return Response
get response in controller s handler