he was a civil governor and a representative for cortes during the bourbon restauration