class LogoutUrlGenerator
Provides generator functions for the logout URL.
__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. | ||
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) |
RequestStack | $requestStack | |
UrlGeneratorInterface | $router | |
TokenStorageInterface | $tokenStorage |
Registers a firewall's LogoutListener, allowing its URL to be generated.
string | $key | The firewall key |
string | $logoutPath | The path that starts the logout process |
string | $csrfTokenId | The ID of the CSRF token |
string | $csrfParameter | The CSRF token parameter name |
CsrfTokenManagerInterface | $csrfTokenManager | A CsrfTokenManagerInterface instance |
string | $context | The listener context |
Generates the absolute logout path for the firewall.
string|null | $key | The firewall key or null to use the current firewall key |
string | The logout path |
Generates the absolute logout URL for the firewall.
string|null | $key | The firewall key or null to use the current firewall key |
string | The logout URL |
string|null | $key | The current firewall key |
string|null | $context | The current firewall context |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.html