[EVENT] Rename event names to camel case to make finding handlers easier

This commit is contained in:
Hugo Sales
2020-10-19 18:22:59 +00:00
committed by Hugo Sales
parent 0b759da780
commit 1949e0b987
6 changed files with 8 additions and 8 deletions

View File

@@ -154,7 +154,7 @@ class UserPanel extends AbstractController
if ($old_file != null) {
@unlink($old_file);
}
Event::handle('delete_cached_avatar', [$user->getNickname()]);
Event::handle('DeleteCachedAvatar', [$user->getNickname()]);
}
return ['_template' => 'settings/avatar.html.twig', 'avatar' => $form->createView()];
@@ -205,7 +205,7 @@ class UserPanel extends AbstractController
}
}
Event::handle('add_notification_transport', [&$form_defs]);
Event::handle('AddNotificationTransport', [&$form_defs]);
unset($form_defs['placeholder']);
$tabbed_forms = [];