src/Bundle/Controller/RequestConfiguration.php
public function getRedirectReferer()
    {
        $redirect = $this->parameters->get('redirect');
        $referer = $this->request->headers->get('referer');

        if (!is_array($redirect) || empty($redirect['referer'])) {
            return $referer;
        }

        if ($redirect['referer'] === true) {
            return $referer;
        }

        return $redirect['referer'];
    }
public function getRedirectReferer()
    {
        $redirect = $this->parameters->get('redirect');
        $referer = $this->request->headers->get('referer');

        if (!is_array($redirect) || empty($redirect['referer'])) {
            return $referer;
        }

        if ($redirect['referer'] === true) {
            return $referer;
        }

        return $redirect['referer'];
    }
public function getRedirectReferer ( ) { $ redirect = $ this -> parameters -> get ( 'redirect' ) ; $ referer = $ this -> request -> headers -> get ( 'referer' ) ; if ( ! is_array ( $ redirect ) || empty ( $ redirect [ 'referer' ] ) ) { return $ referer ; } if ( $ redirect [ 'referer' ] === true ) { return $ referer ; } return $ redirect [ 'referer' ] ; }
Get redirect referer, This will detected by configuration
If not exists, The `referrer` from headers will be used.

@return string
Get redirect referer This will detected by configuration If not exists The referrer from headers will be used .