Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListener::determineTargetUrl PHP 메소드

determineTargetUrl() 개인적인 메소드

Builds the target URL according to the defined options.
private determineTargetUrl ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
리턴 string
    private function determineTargetUrl(Request $request)
    {
        if ($this->options['always_use_default_target_path']) {
            return $this->options['default_target_path'];
        }

        if ($targetUrl = $request->get($this->options['target_path_parameter'], null, true)) {
            return $targetUrl;
        }

        $session = $request->getSession();
        if ($targetUrl = $session->get('_security.target_path')) {
            $session->remove('_security.target_path');

            return $targetUrl;
        }

        if ($this->options['use_referer'] && $targetUrl = $request->headers->get('Referer')) {
            return $targetUrl;
        }

        return $this->options['default_target_path'];
    }