Get route

If no route has been set, this method will
set and return a default route, if any such
value is available

@see getDefaultRoute()

@return Registrar|null route or null if none route has been set
968344
public function getRoute(): ?Registrar
    {
        if (!$this->hasRoute()) {
            $this->setRoute($this->getDefaultRoute());
        }
        return $this->route;
    }
812411
public function getCancelUrl()
    {
        if (null === $this->cancelRoute) {
            $this->cancelRoute = $this->returnRoute;
        }
        return $this->paymentHandler->createAbsoluteUrl($this->returnRoute);
    }
801339
public function getCreateRoute()
    {
        if (null === $this->createRoute) {
            $route = rtrim($this->getBaseRoute(), '/') . '/' . $this->getCreateSuffix();
            $this->setCreateRoute($route);
        }

        return $this->createRoute;
    }
373807
protected function getRouter(): Router
    {
        if ($this->router === null) {
            $this->router = new Router($this->collection, $this->getDispatcher(), $this->getFilters());
        }

        return $this->router;
    }
521871
public function getRouter()
	{
	    $name = 'router';
	    if (!$this->has($name)) {
	        $this->set($name, function () {
	            /*@var FastRouter $router */
	            $router = new FastRouter();
	            
	            $cacheFile = Config::getCommon('router.cache_file');
	            if (!Config::getCommon('debug') && $cacheFile) {
	                $router->setCacheFile($cacheFile);
	            }
	            
	            $routes = Config::load('routes');
	            if ($routes) {
	                $router->loadRoutes($routes);
	            }
	            
	            return $router;
	        });
	    }
	    return $this->get($name);
	}
544374
public function get($condition = null): Router
    {
        if (!$condition) {
            return $this->getDefault();
        }

        // alias of getByName()
        if (\is_string($condition)) {
            return $this->getByName($condition);
        }

        $useName = self::DEFAULT_ROUTER;

        foreach ($this->conditions as $name => $cond) {
            if ($this->compareArray($cond, $condition)) {
                $useName = $name;
                break;
            }
        }

        return $this->getByName($useName);
    }
222824
public function currentRouteAction()
    {
        if (! is_null($route = $this->current())) {
            $action = $route->getAction();

            return isset($action['controller']) ? $action['controller'] : null;
        }
    }
609015
protected function getDefaultPerPage()
    {
        if (is_numeric($this->perPage) && $this->perPage > 0) {
            return $this->perPage;
        }

        return config('repository.perPage', $this->makeModel(false)->getPerPage());
    }
1373574
protected static function getDefaultService()
    {
        $service = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        $parts = parse_url($service);

        if (isset($parts['query'])) {
            parse_str($parts['query'], $query);
        } else {
            $query = array();
        }
        unset($query['ticket']);
        $parts['query'] = http_build_query($query);

        return self::build_url($parts);
    }
1151090
public function getPath() : ?string 
    {
        if ( ! $this->hasPath()) {
            $this->setPath($this->getDefaultPath());
        }
        return $this->path;
    }
787582
protected function getRouteConfig()
    {
        $allroutes = $this->app['config']->get('routing');

        // First, try to find a custom route that's applicable
        foreach ($allroutes as $binding => $config) {
            if ($this->isApplicableRoute($config)) {
                return [$binding, $config];
            }
        }

        // Just return the 'generic' contentlink route.
        if (!empty($allroutes['contentlink'])) {
            return ['contentlink', $allroutes['contentlink']];
        }

        return null;
    }
675762
public function getRouter()
    {
        if (is_null($this->_router)) {
            $this->_router = new Router($this);
        }
        return $this->_router;
    }
408117
public function currentRouteAction()
	{
		if ( ! $this->current()) return;

		$action = $this->current()->getAction();

		return isset($action['controller']) ? $action['controller'] : null;
	}
875689
protected function fetchCustomRouteName()
    {
        $this
            ->fetchOption('customRouteName')
        ;

        if (null !== $this->customRouteName)
        {
            $this->routeName = $this->customRouteName;
        }

        return $this;
    }
565468
public function getRoute()
    {
        /** @var Http $req */
        $req = $this->context->getRequest();
        if (isset($this->map[$req->getControllerName()])) {
            return $this->map[$req->getControllerName()];
        }

        return $this->map[Generic::CONTROLLER_KEY];
    }
265811
public function getDefaultPathGenerator()
    {
        if (null === $this->defaultPathGenerator) {
            $this->setDefaultPathGenerator($this->getOptions()->getDefaultUploadPathGenerator());
        }

        return $this->defaultPathGenerator;
    }
996689
public function RouteRequest () {
		$router = $this->GetRouter()->SetRequest($this->GetRequest());
		try {
			/**
			 * `Route()` method could throws those exceptions:
			 * @throws \LogicException Route configuration property is missing.
			 * @throws \InvalidArgumentException Wrong route pattern format.
			 */
			$result = $router->Route();
		} catch (\Exception $e) {
			$this->DispatchException($e);
			$result = FALSE;
		}
		return $result;
	}