From 794d81c23872322701e6defd284762e414e30efb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 22 Apr 2021 09:44:17 +0200 Subject: [PATCH] Add `IApplication::getInstance()` The existence of `IApplication::getInstance()` was required by the consumer code but not mandated by the interface. In practice, `getInstance()` exists as `AbstractApplication` extends `SingletonFactory`. Close #3823 --- .../files/lib/system/application/IApplication.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/application/IApplication.class.php b/wcfsetup/install/files/lib/system/application/IApplication.class.php index d73b34f491..0dd3d8b68a 100644 --- a/wcfsetup/install/files/lib/system/application/IApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/IApplication.class.php @@ -2,6 +2,8 @@ namespace wcf\system\application; +use wcf\system\SingletonFactory; + /** * Default interface for all applications for the WoltLab Suite. * @@ -47,6 +49,11 @@ interface IApplication */ public function getPrimaryController(); + /** + * @see SingletonFactory::getInstance() + */ + public static function getInstance(); + /** * Forwards unknown method calls to WCF. * -- 2.20.1