For the pastry:
• 250g plain flour
• A good pinch of salt
• 125g cold salted butter, cut into cubes
• 1 large egg yolk
For the filling:
• 125g salted butter, softened
• 125g golden caster sugar
• 1 ½ tsp almond extract
• 3 medium eggs, beaten
• 125g ground almonds
• 2 tbsp self-raising flour
• 2 large red apples, thinly sliced through the middle
• A little melted butter for brushing the top
• 2 tbsp apricot jam