class LogoutUrlGenerator
Provides generator functions for the logout URL.
Methods
__construct(RequestStack $requestStack = null, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null) | ||
registerListener(string $key, string $logoutPath, string $csrfTokenId, string $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = 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. |
Details
__construct(RequestStack $requestStack = null, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null)
registerListener(string $key, string $logoutPath, string $csrfTokenId, string $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = 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.
Please login to continue.