public function logout(Request $request, Response $response, TokenInterface $token)
{
if ($this->unsecuredLogout) {
$location = $response->headers->get('Location');
$response->headers->set('Location', preg_replace('/^https/', 'http', $location));
}
$response->headers->clearCookie($this->cookieName);
}