01 - Preheat oven to 350°F. Grease and flour two 8-inch round cake pans, or line with parchment paper.
02 - Sift together flour, baking powder, and salt in a bowl. Set aside.
03 - Beat eggs and sugar with an electric mixer until pale and thick, about 5 minutes. Mix in vanilla.
04 - Gently fold in the flour mixture until just combined.
05 - Mix milk and melted butter together, then fold into the batter until smooth.
06 - Divide batter evenly between prepared pans. Bake for 22–25 minutes, or until a toothpick comes out clean. Cool in pans for 10 minutes, then turn out onto racks to cool completely.
07 - Heat milk in a saucepan until just simmering. Meanwhile, whisk together egg yolks, sugar, cornstarch, and salt in a separate bowl.
08 - Slowly pour the hot milk into the yolk mixture, whisking constantly to prevent curdling.
09 - Return mixture to saucepan and cook over medium heat, whisking constantly, until thick and bubbling, about 2–3 minutes. Remove from heat, whisk in butter and vanilla.
10 - Transfer to a bowl, cover with plastic wrap touching the surface to prevent skin formation, and chill until completely cold.
11 - Place chopped chocolate and butter in a bowl. Heat cream to a simmer, then pour over the chocolate. Let sit 2 minutes, then stir until smooth and glossy.
12 - Place one cake layer on a serving plate. Spread cooled pastry cream evenly over the cake. Top with the second cake layer.
13 - Pour chocolate ganache over the top, allowing it to drip down the sides naturally. Chill for at least 1 hour before serving to set.