protected function loadRoutes(): RouteCollection
    {
        $builder = $this->getRouteCollectionBuilder();

        if (\is_callable($this->routeCallback)) {
            call_user_func($this->routeCallback, $builder);
        }

        return $builder->build();
    }
protected function loadRoutes(): RouteCollection
    {
        $builder = $this->getRouteCollectionBuilder();

        if (\is_callable($this->routeCallback)) {
            call_user_func($this->routeCallback, $builder);
        }

        return $builder->build();
    }
protected function loadRoutes ( ) : RouteCollection { $ builder = $ this -> getRouteCollectionBuilder ( ) ; if ( \ is_callable ( $ this -> routeCallback ) ) { call_user_func ( $ this -> routeCallback , $ builder ) ; } return $ builder -> build ( ) ; }
Returns routes for request handling.

@return RouteCollection
Returns routes for request handling .