2Place the garlic heads on aluminum foil, drizzle with olive oil, and season with salt and pepper.
3Wrap the garlic in foil and bake at 375°F for one hour.
4In a bowl, add softened cream cheese and squeeze out the roasted garlic cloves.
5Add half a cup of mayonnaise, half a bag of shredded mozzarella cheese, half a cup of shaved parmesan, a third of a cup of chopped green onions, two tablespoons of Italian parsley, one tablespoon of rosemary, salt, and pepper.
6Mix well and pour the mixture into a baking dish.
7Spread the mixture evenly and top with the rest of the mozzarella cheese.
8Bake at 375°F for 20 minutes, until the cheese is melted and golden brown.