Get a Resource Registrar instance.

@return \Nova\Routing\ResourceRegistrar
974082
public function getRegistrar()
    {
        if (isset($this->registrar)) {
            return $this->registrar;
        }

        return $this->registrar = new ResourceRegistrar($this);
    }
151310
public function getRouter()
    {
        if (is_null($this->router)) {
            if (method_exists($this, 'resolve')) {
                $this->setRouter($this->resolve(Router::class));
            } else {
                $this->setRouter(new Router());
            }
        }

        return $this->router;
    }
211989
public function getInstance(): Router
    {
        if (! isset(self::$instance)) {
            self::$instance = new self();
        }
        
        return self::$instance;
    }
373807
protected function getRouter(): Router
    {
        if ($this->router === null) {
            $this->router = new Router($this->collection, $this->getDispatcher(), $this->getFilters());
        }

        return $this->router;
    }
538154
public function getResourceDiscovery() {
		if ($this->resourceDiscovery === null) {
			$repo = $this->getResourceRepository();
			$this->resourceDiscovery = $this->getPuliFactory()->createDiscovery($repo);
		}

		return $this->resourceDiscovery;
	}
258171
public function getDomain()
    {
        $current = $this->server['HTTP_HOST'];
        $parts = explode('.', $current);

        $zone = array_pop($parts);
        $provider = array_pop($parts);

        return $provider . '.' . $zone;
    }
199475
public function getResource()
    {
        if ($this->_resource === null) {
            $this->_resource = $this->toResource();
        }
        return $this->_resource;
    }
545057
protected function registerUrlGenerator()
	{
		$this->app['url'] = $this->app->share(function($app)
		{
			// The URL generator needs the route collection that exists on the router.
			// Keep in mind this is an object, so we're passing by references here
			// and all the registered routes will be available to the generator.
			$routes = $app['router']->getRoutes();

			return new UrlGenerator($routes, $app->rebinding('request', function($app, $request)
			{
				$app['url']->setRequest($request);
			}));
		});
	}
209441
public function register()
    {
        AliasLoader::getInstance()->alias( 'ArboryRouter', ArboryRouter::class );
        AliasLoader::getInstance()->alias( 'Admin', Admin::class );
        AliasLoader::getInstance()->alias( 'Page', Page::class );
        AliasLoader::getInstance()->alias( 'Settings', Settings::class );

        $this->app->singleton( NodesRepository::class, function()
        {
            $repository = new NodesRepository();

            $repository->setQueryOnlyActiveNodes( true );

            return $repository;
        } );

        $this->app->singleton( ContentTypeRegister::class, function ()
        {
            return new ContentTypeRegister();
        } );

        $this->app->singleton( 'arbory_router', function ()
        {
            return $this->app->make( ContentTypeRoutesRegister::class );
        } );

        $this->app->singleton( 'arbory_page_builder', function()
        {
            return new PageBuilder(
                $this->app->make( ContentTypeRegister::class ),
                $this->app->make( 'arbory_router' )
            );
        } );

        $this->routes = $this->app->make( 'arbory_router' );
    }
1235900
protected function getResourceParameter()
    {
        $resource = parent::getResourceParameter();
        if ($resource->isInstanceOf($this->getClass(GenerisRdf::CLASS_GENERIS_USER))) {
            return $resource;
        }

        throw new InvalidArgumentException('Only user resource are allowed.');
    }
621507
public function getResourceLink()
    {

        if (is_null($this->resourceLink) && !is_null($this->resourceLinkId)) {
            $this->resourceLink = ResourceLink::fromRecordId($this->resourceLinkId, $this->getDataConnector());
        }

        return $this->resourceLink;

    }
369744
public function getDomain()
    {
        if (FluentState::singleton()->getIsDomainMode() && $this->DomainID) {
            return Domain::getCached()->byID($this->DomainID);
        }
        return null;
    }
464833
public function GetLinkForRegistrationGuest()
    {
        $oURLData = &TCMSSmartURLData::GetActive();
        $oShop = &TdbShop::GetInstance($oURLData->iPortalId);
        $sRegisterPath = $oShop->GetLinkToSystemPage(self::NAME_SYSTEM_PAGE);

        return $sRegisterPath;
    }
1127186
protected function registerUrlGenerator()
    {
        $this->app->singleton('url', function ($app)
        {
            // The URL generator needs the route collection that exists on the router.
            // Keep in mind this is an object, so we're passing by references here
            // and all the registered routes will be available to the generator.
            $routes = $app['router']->getRoutes();

            $url = new UrlGenerator($routes, $app->rebinding('request', function ($app, $request)
            {
                $app['url']->setRequest($request);
            }));

            $url->setSessionResolver(function ()
            {
                return $this->app['session'];
            });

            return $url;
        });
    }
803331
public function registerUrlGenerator()
    {
        $this->getContainer()->singleton('url', function () {
            $router = $this->getContainer()->get('router');
            return $router->getGenerator();
        });
    }
190461
public function getMe()
    {
        $this->getLogger()->debug('Getting Resource Owner');
        if ($this->me == null) {
            $this->me = $this->provider->getResourceOwner($this->getAccessToken());
        }
        return $this->me;
    }
723303
public function getRouter() {
        $routesIni = $this->_getRoutesConfig();
        $this->setOptions($routesIni->toArray());
        $options = $this->getOptions();

        if ($this->_localeIsEnabled()) {
            $bootstrap = $this->getBootstrap();

            if (!$this->_locale) {
                $bootstrap->bootstrap('Locale');
                $this->_locale = $bootstrap->getContainer()->locale;
            }

            $defaultLocale = array_keys($this->_locale->getDefault());
            $defaultLocale = $defaultLocale[0];

            $locales = $this->_getPossibleLocales();
            $routes = $options['routes'];
            $localizedRoutes = Garp_I18n::getLocalizedRoutes($routes, $locales);
            $options['routes'] = array_merge($routes, $localizedRoutes);
            $this->setOptions($options);
        }

        $router = parent::getRouter();
        $router->addDefaultRoutes();
        return $router;
    }