protected function prepareRouteCollection()
    {
        $builder = Router::createRouteBuilder('/');
        $this->app->routes($builder);
        if ($this->app instanceof PluginApplicationInterface) {
            $this->app->pluginRoutes($builder);
        }

        return Router::getRouteCollection();
    }
protected function prepareRouteCollection()
    {
        $builder = Router::createRouteBuilder('/');
        $this->app->routes($builder);
        if ($this->app instanceof PluginApplicationInterface) {
            $this->app->pluginRoutes($builder);
        }

        return Router::getRouteCollection();
    }
protected function prepareRouteCollection ( ) { $ builder = Router :: createRouteBuilder ( '/' ) ; $ this -> app -> routes ( $ builder ) ; if ( $ this -> app instanceof PluginApplicationInterface ) { $ this -> app -> pluginRoutes ( $ builder ) ; } return Router :: getRouteCollection ( ) ; }
Generate the route collection using the builder

@return \Cake\Routing\RouteCollection
Generate the route collection using the builder