@@ -38,6 +38,7 @@ public function __construct(
3838 private DocMdpConfigService $ docMdpConfigService ,
3939 ) {
4040 }
41+ #[\Override]
4142 public function getForm (): TemplateResponse {
4243 Util::addScript (Application::APP_ID , 'libresign-settings ' );
4344 Util::addStyle (Application::APP_ID , 'libresign-settings ' );
@@ -70,6 +71,7 @@ public function getForm(): TemplateResponse {
7071 $ this ->initialState ->provideInitialState ('footer_template_variables ' , $ this ->footerService ->getTemplateVariablesMetadata ());
7172 $ this ->initialState ->provideInitialState ('footer_template ' , $ this ->footerService ->getTemplate ());
7273 $ this ->initialState ->provideInitialState ('footer_template_is_default ' , $ this ->footerService ->isDefaultTemplate ());
74+ $ this ->initialState ->provideInitialState ('signature_engine ' , $ this ->appConfig ->getValueString (Application::APP_ID , 'signature_engine ' , 'JSignPdf ' ));
7375 $ this ->initialState ->provideInitialState ('signature_render_mode ' , $ this ->signatureTextService ->getRenderMode ());
7476 $ this ->initialState ->provideInitialState ('signature_text_template ' , $ this ->signatureTextService ->getTemplate ());
7577 $ this ->initialState ->provideInitialState ('signature_width ' , $ this ->signatureTextService ->getFullSignatureWidth ());
@@ -87,19 +89,24 @@ public function getForm(): TemplateResponse {
8789 $ this ->initialState ->provideInitialState ('approval_group ' , $ this ->appConfig ->getValueArray (Application::APP_ID , 'approval_group ' , ['admin ' ]));
8890 $ this ->initialState ->provideInitialState ('envelope_enabled ' , $ this ->appConfig ->getValueBool (Application::APP_ID , 'envelope_enabled ' , true ));
8991 $ this ->initialState ->provideInitialState ('parallel_workers ' , $ this ->appConfig ->getValueString (Application::APP_ID , 'parallel_workers ' , '4 ' ));
92+ $ this ->initialState ->provideInitialState ('show_confetti_after_signing ' , $ this ->appConfig ->getValueBool (Application::APP_ID , 'show_confetti_after_signing ' , true ));
93+ $ this ->initialState ->provideInitialState ('crl_external_validation_enabled ' , $ this ->appConfig ->getValueBool (Application::APP_ID , 'crl_external_validation_enabled ' , true ));
94+ $ this ->initialState ->provideInitialState ('ldap_extension_available ' , function_exists ('ldap_connect ' ));
9095 return new TemplateResponse (Application::APP_ID , 'admin_settings ' );
9196 }
9297
9398 /**
9499 * @psalm-return 'libresign'
95100 */
101+ #[\Override]
96102 public function getSection (): string {
97103 return Application::APP_ID ;
98104 }
99105
100106 /**
101107 * @psalm-return 100
102108 */
109+ #[\Override]
103110 public function getPriority (): int {
104111 return 100 ;
105112 }
0 commit comments