3 tablespoons extra-virgin olive oil
1 large onion, diced, about 1 1/2 cups
Salt and pepper
6 garlic cloves, minced
1 bay leaf
1 tablespoon tomato paste
Pinch of crushed red pepper
Splash of white wine (optional)
2 large very ripe sweet tomatoes, chopped (about 2 cups)
3 or 4 zucchini or summer squash, chopped into roughly 1/2-inch cubes (about 3 cups)
½ pound romano beans, ends trimmed and cut into 2-inch lengths (about 2 cups)
2 cups small, dry pasta, such pennette or orecchiette
½ pound small green beans, ends trimmed and cut into 2-inch lengths (about 1 1/2 cups)
FOR THE PESTO:
2 medium garlic cloves, coarsely chopped
Salt and pepper
2 cups basil leaves, loosely packed, washed and dried
1 cup parsley leaves, loosely packed, washed and dried
¾ cup extra-virgin olive oil
¼ cup grated Parmesan, plus more for serving