src/ModelController.php
protected function getListRoute(Request $req, Response $res)
    {
        $route = new ListModelsRoute($req, $res);
        $route->setApp($this->app)
              ->setSerializer($this->getSerializer($req));

        return $route;
    }
protected function getListRoute(Request $req, Response $res)
    {
        $route = new ListModelsRoute($req, $res);
        $route->setApp($this->app)
              ->setSerializer($this->getSerializer($req));

        return $route;
    }
protected function getListRoute ( Request $ req , Response $ res ) { $ route = new ListModelsRoute ( $ req , $ res ) ; $ route -> setApp ( $ this -> app ) -> setSerializer ( $ this -> getSerializer ( $ req ) ) ; return $ route ; }
Builds a list route object.

@param Request  $req
@param Response $res

@return ListModelsRoute
Builds a list route object .