protected function loadRoutes()
    {
        $builder = Router::createRouteBuilder('/');

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

        if ($this->app instanceof HttpApplicationInterface) {
            $this->app->routes($builder);
        }
        if ($this->app instanceof PluginApplicationInterface) {
            $this->app->pluginRoutes($builder);
        }
    }
protected function loadRoutes ( ) { $ builder = Router :: createRouteBuilder ( '/' ) ; if ( $ this -> app instanceof HttpApplicationInterface ) { $ this -> app -> routes ( $ builder ) ; } if ( $ this -> app instanceof PluginApplicationInterface ) { $ this -> app -> pluginRoutes ( $ builder ) ; } }
Ensure that the application's routes are loaded.

Console commands and shells often need to generate URLs.

@return void
Ensure that the application s routes are loaded .