private LogoutUrlGenerator
$generator;
public function __construct(LogoutUrlGenerator
$generator) { $this->generator =
$generator;
} public function getFunctions(): array
{ return [ new TwigFunction('logout_url',
$this->
getLogoutUrl(...
)),
new TwigFunction('logout_path',
$this->
getLogoutPath(...
)),
];
} /**
* Generates the relative logout URL for the firewall.
*
* @param string|null $key The firewall key or null to use the current firewall key
*/
public function getLogoutPath(string
$key = null
): string
{