Private/Polyfony/Security.php
public static function disconnect() :void {

		// first authenticate
		self::enforce();

		// then close the session
		self::$_account->closeSession();

		// and redirect to the exit route or fallback to the login route
		Response::setRedirect(Config::get('router', 'exit_route') ?: Config::get('router', 'login_route'));

		// render the response
		Response::render();

	}
public static function disconnect() :void {

		// first authenticate
		self::enforce();

		// then close the session
		self::$_account->closeSession();

		// and redirect to the exit route or fallback to the login route
		Response::setRedirect(Config::get('router', 'exit_route') ?: Config::get('router', 'login_route'));

		// render the response
		Response::render();

	}
public static function disconnect ( ) : void { // first authenticate self :: enforce ( ) ; // then close the session self :: $ _account -> closeSession ( ) ; // and redirect to the exit route or fallback to the login route Response :: setRedirect ( Config :: get ( 'router' , 'exit_route' ) ? : Config :: get ( 'router' , 'login_route' ) ) ; // render the response Response :: render ( ) ; }
authenticate then close the session
authenticate then close the session