LogoutUrlGenerator
class LogoutUrlGenerator
Provides generator functions for the logout URL.
Methods
__construct(RequestStack $requestStack = null, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null)
No description
registerListener(string $key, string $logoutPath, string $csrfTokenId, string $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null, string $context = null)
Registers a firewall's LogoutListener, allowing its URL to be generated.
string
getLogoutPath(string|null $key = null)
Generates the absolute logout path for the firewall.
string
getLogoutUrl(string|null $key = null)
Generates the absolute logout URL for the firewall.
setCurrentFirewall(string|null $key, string|null $context = null)
No description
Details
__construct(RequestStack $requestStack = null, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null)
registerListener(string $key, string $logoutPath, string $csrfTokenId, string $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null, string $context = null)
Registers a firewall's LogoutListener, allowing its URL to be generated.