@@ -48,13 +48,14 @@ public function __construct(
4848 ) {}
4949
5050 /**
51- * @param array<string, mixed> $values
5251 * @param array<array{title: string, message: string, severity: string}> $flashMessages
5352 *
5453 * @throws Exception
5554 */
56- public function render (string $ template = ' FrontendEdit.html ' , array $ values = [], ? ServerRequestInterface $ request = null , array $ flashMessages = []): string
55+ public function render (ServerRequestInterface $ request , array $ flashMessages = []): string
5756 {
57+ $ template = 'FrontendEdit.html ' ;
58+
5859 try {
5960 $ nonceValue = $ this ->resolveNonceValue ();
6061 $ nonceAttribute = '' !== $ nonceValue ? ' nonce=" ' .$ nonceValue .'" ' : '' ;
@@ -68,9 +69,7 @@ public function render(string $template = 'FrontendEdit.html', array $values = [
6869 $ this ->addStickyToolbarResourcesIfEnabled ($ resources , $ request , $ nonceAttribute );
6970 $ this ->addFlashMessagesConfig ($ resources , $ nonceAttribute , $ flashMessages );
7071
71- $ values = [...$ values , 'resources ' => $ resources ];
72-
73- return $ this ->renderView ($ template , $ values , $ request );
72+ return $ this ->renderView ($ template , ['resources ' => $ resources ], $ request );
7473 } catch (Throwable $ exception ) {
7574 throw new Exception ('Failed to render template " ' .$ template .'": ' .$ exception ->getMessage (), 1640000001 , $ exception );
7675 }
0 commit comments