From 1267692b0b5763bc29f8a0840b71fa55cecd8c41 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 14 Nov 2022 10:04:05 +0100 Subject: [PATCH] Document GenericEvent deprecation in Nextcloud 22 Signed-off-by: Christoph Wurst --- developer_manual/basics/events.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/developer_manual/basics/events.rst b/developer_manual/basics/events.rst index da49046e4..1661462de 100644 --- a/developer_manual/basics/events.rst +++ b/developer_manual/basics/events.rst @@ -34,7 +34,9 @@ Events are usually evmitted *after* the event has happened. If it's emitted befo Thus `BeforeUserCreatedEvent` is emitted *before* the user data is written to the database. -.. note:: Although you may chose to name your event classes differently, sticking to the convention will allow Nextcloud developers understand each other's apps more easily. +.. note:: Although you may choose to name your event classes differently, sticking to the convention will allow Nextcloud developers understand each other's apps more easily. + +.. note:: For backwards compatibility with the Symfony class `GenericEvent `_, Nextcloud also provides a ``\OCP\EventDispatcher\Event`` class. With the release of Nextcloud 22 this class has been deprecated. Named and typed event classes should be used instead. Writing events ``````````````