LogoutUrlGenerator
LogoutUrlGenerator
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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.html