heat the butter in a frying pan until it is gently foaming and add the shallots allowing them to soften
add the mushrooms, thyme and garlic and fry until the mushrooms are well cooked
add the brandy and flame - continuing to cook until most of the liquid has evaporated
add the pan contents to a food processor and blend until smooth and then add the cream cheese and continue to blend until it is thoroughly combined
Place into a suitable dish (I use a small oval pie dish), cover with clingfilm and chill in the fridge for a couple of hours before serving