From: Matthias Schmidt Date: Thu, 22 Apr 2021 07:44:17 +0000 (+0200) Subject: Add `IApplication::getInstance()` X-Git-Tag: 5.4.0_Alpha_1~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=794d81c23872322701e6defd284762e414e30efb;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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. *