LogoutUrlExtension

class LogoutUrlExtension extends Twig_Extension

LogoutUrlHelper provides generator functions for the logout URL to Twig.

Methods

__construct(LogoutUrlGenerator $generator)
getFunctions()

{@inheritdoc}

string getLogoutPath(string|null $key = null)

Generates the relative logout URL for the firewall.

string getLogoutUrl(string|null $key = null)

Generates the absolute logout URL for the firewall.

getName()

{@inheritdoc}

Details

__construct(LogoutUrlGenerator $generator)

Parameters

LogoutUrlGenerator $generator

getFunctions()

{@inheritdoc}

string getLogoutPath(string|null $key = null)

Generates the relative logout URL for the firewall.

Parameters

string|null $key The firewall key or null to use the current firewall key

Return Value

string The relative logout URL

string getLogoutUrl(string|null $key = null)

Generates the absolute logout URL for the firewall.

Parameters

string|null $key The firewall key or null to use the current firewall key

Return Value

string The absolute logout URL

getName()

{@inheritdoc}

doc_Symfony
2016-10-28 06:23:12
Comments
Leave a Comment

Please login to continue.