First of all, fry the finely chopped mushrooms with one finely chopped onion, with the addition of vegetable oil, until cooked. Add a little salt and cool.
The second onion, together with garlic, is crushed in the bowl of a blender.
Grate the cheese on a coarse grater.