Cook the onions, garlic, herbs and spices in oil until the onions are soft