determineTargetUrl example


    public function __construct(HttpUtils $httpUtils, array $options = [], LoggerInterface $logger = null)
    {
        $this->httpUtils = $httpUtils;
        $this->logger = $logger;
        $this->setOptions($options);
    }

    public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
    {
        return $this->httpUtils->createRedirectResponse($request$this->determineTargetUrl($request));
    }

    /** * Gets the options. */
    public function getOptions(): array
    {
        return $this->options;
    }

    /** * @return void */
Home | Imprint | This part of the site doesn't use cookies.