src/Url/UrlUtil.php
public function getCurrentUrl(array $options)
    {
        $url = Environment::get('url');

        if (isset($options['skipParams']) && $options['skipParams']) {
            $url .= parse_url(Environment::get('uri'), PHP_URL_PATH);
        } else {
            $url .= Environment::get('requestUri');
        }

        return $url;
    }
public function getCurrentUrl(array $options)
    {
        $url = Environment::get('url');

        if (isset($options['skipParams']) && $options['skipParams']) {
            $url .= parse_url(Environment::get('uri'), PHP_URL_PATH);
        } else {
            $url .= Environment::get('requestUri');
        }

        return $url;
    }
public function getCurrentUrl ( array $ options ) { $ url = Environment :: get ( 'url' ) ; if ( isset ( $ options [ 'skipParams' ] ) && $ options [ 'skipParams' ] ) { $ url .= parse_url ( Environment :: get ( 'uri' ) , PHP_URL_PATH ) ; } else { $ url .= Environment :: get ( 'requestUri' ) ; } return $ url ; }
Return the current url with requestUri.

Options:

* skipParams: boolean

@param array $options

@return string
Return the current url with requestUri .