Turn the oven down to 375° F.
Melt 2 tablespoons of butter in a large pot over medium-high heat. Add the diced onion and cook for 5 minutes, adding garlic during the last minute. Add 5 more tablespoons of butter to the pot and melt. Add the flour and stir to combine with onions and butter; let cook for one minute. While whisking, pour in the chicken stock then the half-and-half. Stirring frequently, bring to a simmer so the sauce thickens, about 2-3 minutes.
Remove the pot from stove and stir in the parmesan, soy sauce, Worcestershire, rosemary, thyme, salt, and pepper.
Mix the green beans with the gravy, then transfer to a 9”x13” or 3-4 quart baking dish. Cover with tinfoil and bake for 35 minutes. Remove tinfoil and bake for another 10-15 minutes, or until the green beans are tender. Add the fried onions over the top and bake for an additional 5 minutes.
Enjoy with family and friends!