Brown some onions and sliced button and/or cremini mushrooms in a large frying pan or cast-iron skillet over medium-high heat while occasionally stirring.
Stir in the garlic and cook for 20 to 30 seconds before sprinkling in some flour and mixing it in using a spoon to make a roux until combined with the cooked vegetables.