From: Alexander Ebert Date: Tue, 5 Jun 2012 21:17:47 +0000 (+0200) Subject: Defined Action/Form/Page constructors as final X-Git-Tag: 2.0.0_Beta_1~1078 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c5a00b3f75074d390cdca2d91314261fa03e382;p=GitHub%2FWoltLab%2FWCF.git Defined Action/Form/Page constructors as final Everything takes place in __run(), feel free to overwrite this method if you like. --- diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index 17264b99c5..40ab568313 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -28,6 +28,11 @@ abstract class AbstractAction implements IAction { */ public $neededPermissions = array(); + /** + * @see wcf\form\IAction::__run() + */ + public final function __construct() { } + /** * @see wcf\action\IAction::__run() */ diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index 85c4acee2d..31ca7ca9e0 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -47,6 +47,11 @@ abstract class AbstractPage implements IPage { */ public $neededPermissions = array(); + /** + * @see wcf\form\IPage::__run() + */ + public final function __construct() { } + /** * @see wcf\page\IPage::__run() */