1. Heat the olive oil in a pan and fry the onion and garlic (if using) until soft. Add the mushrooms and fry until most of the moisture has evaporated.
2. Transfer to a bowl and leave to cool. Mix in the rest of the ingredients except the coconut oil.
3. Shape into flat cakes (like fishcakes) and chill for at least 30 minutes.