Autarky\Routing\UrlGenerator::getRootUrl PHP 메소드

getRootUrl() 공개 메소드

Get the root URL. Used to generate URLs to assets.
public getRootUrl ( ) : string
리턴 string
    public function getRootUrl()
    {
        $request = $this->requests->getCurrentRequest();
        $host = $request->getHttpHost();
        $base = $request->getBaseUrl();
        return rtrim("//{$host}/{$base}", '/');
    }