Skip to content

Commit

Permalink
fixup! feat: mail provider settings
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Sep 17, 2024
1 parent b1d1007 commit 803282e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/settings/lib/Listener/MailSettingsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function handle(Event $event): void {
return;
}

/** @var DeclarativeSettingsGetValueEvent|DeclarativeSettingsSetValueEvent $event */
if ($event->getApp() !== Application::APP_ID) {
return;
}
Expand All @@ -49,7 +50,7 @@ public function handle(Event $event): void {

}

private function handleRegister(Event $event) {
private function handleRegister(DeclarativeSettingsRegisterFormEvent $event): void {

$event->registerSchema(Application::APP_ID, [
'id' => 'mail-provider-support',
Expand Down Expand Up @@ -82,7 +83,8 @@ private function handleRegister(Event $event) {

}

private function handleGetValue(Event $event) {

private function handleGetValue(DeclarativeSettingsGetValueEvent $event): void {

$event->setValue(
match($event->getFieldId()) {
Expand All @@ -92,7 +94,7 @@ private function handleGetValue(Event $event) {

}

private function handleSetValue(Event $event) {
private function handleSetValue(DeclarativeSettingsSetValueEvent $event): void {

switch ($event->getFieldId()) {
case 'mail_providers_disabled':
Expand Down

0 comments on commit 803282e

Please sign in to comment.