Using cooking spray or olive oil, cook until onions and garlic are just opaque.