Chop the onions and garlic, cut the aubergine into small cubes. Sauté the onion with the oil in the pan until translucent, then add the eggplant and garlic and fry until the eggplant is very soft. Season with plenty of salt and spices to taste.
Allow the cream to cool a little and then puree in a tall container to a smooth pulp. Let cool and use within a few days if stored in the refrigerator.