protected function redirectToReferer(): RedirectResponse
    {
        $url = $this->requestService->fetchRefererUrl();

        // Oops, url of referer is unknown
        if ('' === $url) {
            throw CannotRedirectToEmptyRefererUrlException::create();
        }

        return $this->redirect($url);
    }
protected function redirectToReferer(): RedirectResponse
    {
        $url = $this->requestService->fetchRefererUrl();

        // Oops, url of referer is unknown
        if ('' === $url) {
            throw CannotRedirectToEmptyRefererUrlException::create();
        }

        return $this->redirect($url);
    }
protected function redirectToReferer ( ) : RedirectResponse { $ url = $ this -> requestService -> fetchRefererUrl ( ) ; // Oops, url of referer is unknown if ( '' === $ url ) { throw CannotRedirectToEmptyRefererUrlException :: create ( ) ; } return $ this -> redirect ( $ url ) ; }
Redirects to url of referer

@throws CannotRedirectToEmptyRefererUrlException
@return RedirectResponse
Redirects to url of referer