public function logoutAction()
    {
        if ($this->getSecurityContext()->hasCustomerUser()) {
            $this->dispatch(TheliaEvents::CUSTOMER_LOGOUT);
        }

        $this->clearRememberMeCookie($this->getRememberMeCookieName());

        // Redirect to home page
        return $this->generateRedirect(URL::getInstance()->getIndexPage());
    }
public function logoutAction()
    {
        if ($this->getSecurityContext()->hasCustomerUser()) {
            $this->dispatch(TheliaEvents::CUSTOMER_LOGOUT);
        }

        $this->clearRememberMeCookie($this->getRememberMeCookieName());

        // Redirect to home page
        return $this->generateRedirect(URL::getInstance()->getIndexPage());
    }
public function logoutAction ( ) { if ( $ this -> getSecurityContext ( ) -> hasCustomerUser ( ) ) { $ this -> dispatch ( TheliaEvents :: CUSTOMER_LOGOUT ) ; } $ this -> clearRememberMeCookie ( $ this -> getRememberMeCookieName ( ) ) ; // Redirect to home page return $ this -> generateRedirect ( URL :: getInstance ( ) -> getIndexPage ( ) ) ; }
Perform customer logout.
Perform customer logout .