Cook onions in oil and butter until softened. Sprinkle in flour to thicken, then add herbs, dark beer and beef stock, stir well. Add the apples and cook until softened.