Heat the oil in the pan. In it, sauté the chopped garlic and the onion until translucent. Now heat the other ingredients except egg and puff pastry in it and stir into a mixture. Remove from the plate and let cool down.
Preheat the stove to 220 ° C.
Divide the puff pastry into eight parts. Pour the mixture onto one half of the dough, leaving the edges. Brush these with the beaten egg. Fold the other half of the dough over the filling and press down the edges well.