From f7c04b04153ac0d66fd3e74fe1ec2d7c661a751e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Tue, 23 Jun 2020 15:24:50 +0200 Subject: [PATCH] Deprecate panel register event right away but keep it for not breaking backward compatible apps MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/public/Dashboard/IRegisterPanelEvent.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/public/Dashboard/IRegisterPanelEvent.php b/lib/public/Dashboard/IRegisterPanelEvent.php index f322d87d82d..1ca42a6f033 100644 --- a/lib/public/Dashboard/IRegisterPanelEvent.php +++ b/lib/public/Dashboard/IRegisterPanelEvent.php @@ -28,8 +28,14 @@ use OCP\EventDispatcher\Event; /** * Class IRegisterPanelEvent * + * This event is dispatched to allow apps supporting older Nextcloud versions to + * still register their dashboard panels so that they are only constructed when + * they are needed. Deprecated right away so we can drop it again after 19 is EOL + * and backward compatible apps can use OCP\AppFramework\Bootstrap\IBootstrap + * * @package OCP\Dashboard * @since 20.0.0 + * @deprecated 20.0.0 */ class IRegisterPanelEvent extends Event { private $manager; -- 2.39.5