Chop onion and garlic in a food processor.