src/Koldy/Application.php
public static function getCurrentURL(): Url
    {
        if (static::$currentUrl instanceof Url) {
            return static::$currentUrl;
        }

        if (Application::isCli()) {
            throw new ApplicationException('Can not get current URL while running in CLI mode; URL doesn\'t exist in CLI mode');
        }

        static::$currentUrl = new Url(static::getDomainWithSchema() . static::getUri());
        return static::$currentUrl;
    }
public static function getCurrentURL(): Url
    {
        if (static::$currentUrl instanceof Url) {
            return static::$currentUrl;
        }

        if (Application::isCli()) {
            throw new ApplicationException('Can not get current URL while running in CLI mode; URL doesn\'t exist in CLI mode');
        }

        static::$currentUrl = new Url(static::getDomainWithSchema() . static::getUri());
        return static::$currentUrl;
    }
public static function getCurrentURL ( ) : Url { if ( static :: $ currentUrl instanceof Url ) { return static :: $ currentUrl ; } if ( Application :: isCli ( ) ) { throw new ApplicationException ( 'Can not get current URL while running in CLI mode; URL doesn\'t exist in CLI mode' ) ; } static :: $ currentUrl = new Url ( static :: getDomainWithSchema ( ) . static :: getUri ( ) ) ; return static :: $ currentUrl ; }
Get full current URL, with schema

@return Url
@throws Exception
Get full current URL with schema