From 07d875dbd7554115e4fab2681444ce3f99ddc7dc Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 20 Aug 2024 16:25:59 +1200 Subject: [PATCH] API Replace Extension subclasses --- code/Extension/UpgradePolymorphicExtension.php | 6 +++--- code/Extension/UserFormFieldEditorExtension.php | 4 ++-- code/Extension/UserFormFileExtension.php | 6 +++--- code/UserForm.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/Extension/UpgradePolymorphicExtension.php b/code/Extension/UpgradePolymorphicExtension.php index 81dac23..778d18e 100644 --- a/code/Extension/UpgradePolymorphicExtension.php +++ b/code/Extension/UpgradePolymorphicExtension.php @@ -4,7 +4,7 @@ namespace SilverStripe\UserForms\Extension; use SilverStripe\Control\Director; use SilverStripe\Core\Injector\Injector; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\DataList; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\ValidationException; @@ -24,9 +24,9 @@ use SilverStripe\UserForms\UserForm; * * @internal This API is likely to be removed in later major versions of silverstripe/userforms * - * @extends DataExtension + * @extends Extension */ -class UpgradePolymorphicExtension extends DataExtension +class UpgradePolymorphicExtension extends Extension { /** * A list of userforms classes that have had polymorphic relationships added in SilverStripe 4, and the fields diff --git a/code/Extension/UserFormFieldEditorExtension.php b/code/Extension/UserFormFieldEditorExtension.php index 4ea34e6..82fa198 100644 --- a/code/Extension/UserFormFieldEditorExtension.php +++ b/code/Extension/UserFormFieldEditorExtension.php @@ -13,7 +13,7 @@ use SilverStripe\Forms\GridField\GridFieldEditButton; use SilverStripe\Forms\GridField\GridFieldDeleteAction; use SilverStripe\Forms\GridField\GridFieldDetailForm; use SilverStripe\Forms\GridField\GridFieldToolbarHeader; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\DataList; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\HasManyList; @@ -32,7 +32,7 @@ use Symbiote\GridFieldExtensions\GridFieldOrderableRows; /** * @method HasManyList Fields() */ -class UserFormFieldEditorExtension extends DataExtension +class UserFormFieldEditorExtension extends Extension { /** * @var array diff --git a/code/Extension/UserFormFileExtension.php b/code/Extension/UserFormFileExtension.php index cb5c76c..9199e33 100644 --- a/code/Extension/UserFormFileExtension.php +++ b/code/Extension/UserFormFileExtension.php @@ -5,7 +5,7 @@ namespace SilverStripe\UserForms\Extension; use SilverStripe\Assets\File; use SilverStripe\Assets\Folder; use SilverStripe\Core\Convert; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\Queries\SQLUpdate; use SilverStripe\UserForms\Control\UserDefinedFormController; @@ -15,9 +15,9 @@ use SilverStripe\UserForms\Model\Submission\SubmittedFileField; * @property string $UserFormUpload * @method SubmittedFileField SubmittedFileField() * - * @extends DataExtension + * @extends Extension */ -class UserFormFileExtension extends DataExtension +class UserFormFileExtension extends Extension { public const USER_FORM_UPLOAD_UNKNOWN = null; diff --git a/code/UserForm.php b/code/UserForm.php index fae5120..c2ccd10 100644 --- a/code/UserForm.php +++ b/code/UserForm.php @@ -328,7 +328,7 @@ SQL; } /** - * Allow overriding the EmailRecipients on a {@link DataExtension} + * Allow overriding the EmailRecipients on a {@link Extension} * so you can customise who receives an email. * Converts the RelationList to an ArrayList so that manipulation * of the original source data isn't possible.