Mr. Hariri became prime minister in 1992 as optimism swept Lebanon two years after the end of its 15-year civil war .