src/Kunstmaan/MultiDomainBundle/Helper/HostOverrideCleanupHandler.php
public function logout(Request $request, Response $response, TokenInterface $token)
    {
        // Remove host override
        if ($request->hasPreviousSession() && $request->getSession()->has(DomainConfiguration::OVERRIDE_HOST)) {
            $request->getSession()->remove(DomainConfiguration::OVERRIDE_HOST);
        }
    }
public function logout(Request $request, Response $response, TokenInterface $token)
    {
        // Remove host override
        if ($request->hasPreviousSession() && $request->getSession()->has(DomainConfiguration::OVERRIDE_HOST)) {
            $request->getSession()->remove(DomainConfiguration::OVERRIDE_HOST);
        }
    }
public function logout ( Request $ request , Response $ response , TokenInterface $ token ) { // Remove host override if ( $ request -> hasPreviousSession ( ) && $ request -> getSession ( ) -> has ( DomainConfiguration :: OVERRIDE_HOST ) ) { $ request -> getSession ( ) -> remove ( DomainConfiguration :: OVERRIDE_HOST ) ; } }
This method is called by the LogoutListener when a user has requested
to be logged out. Usually, you would unset session variables, or remove
cookies, etc.

@param Request        $request
@param Response       $response
@param TokenInterface $token
This method is called by the LogoutListener when a user has requested to be logged out . Usually you would unset session variables or remove cookies etc .