From 5d1129fcf153a418002f909a56cad9c560bae8ba Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 20 Aug 2024 16:18:10 +1200 Subject: [PATCH] API Replace Extension subclasses --- docs/en/developer.md | 4 ++-- src/Extensions/LDAPGroupExtension.php | 6 +++--- src/Extensions/LDAPMemberExtension.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/en/developer.md b/docs/en/developer.md index d0a4cb9..ab5fddb 100644 --- a/docs/en/developer.md +++ b/docs/en/developer.md @@ -276,9 +276,9 @@ mentioned above. You will still need to apply that extension to `SilverStripe\Se ```php use SilverStripe\Assets\Image; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; -class MyMemberExtension extends DataExtension +class MyMemberExtension extends Extension { private static $db = [ // 'description' is a regular textual field and is written automatically. diff --git a/src/Extensions/LDAPGroupExtension.php b/src/Extensions/LDAPGroupExtension.php index 73fe674..6290540 100644 --- a/src/Extensions/LDAPGroupExtension.php +++ b/src/Extensions/LDAPGroupExtension.php @@ -9,7 +9,7 @@ use SilverStripe\Forms\LiteralField; use SilverStripe\Forms\ReadonlyField; use SilverStripe\LDAP\Model\LDAPGroupMapping; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\HasManyList; /** @@ -19,9 +19,9 @@ * * @method HasManyList LDAPGroupMappings() * - * @extends DataExtension + * @extends Extension */ -class LDAPGroupExtension extends DataExtension +class LDAPGroupExtension extends Extension { /** * @var array diff --git a/src/Extensions/LDAPMemberExtension.php b/src/Extensions/LDAPMemberExtension.php index d5cdb6c..946fabc 100644 --- a/src/Extensions/LDAPMemberExtension.php +++ b/src/Extensions/LDAPMemberExtension.php @@ -9,7 +9,7 @@ use SilverStripe\Forms\ReadonlyField; use SilverStripe\Forms\TextField; use SilverStripe\LDAP\Services\LDAPService; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\ValidationException; use SilverStripe\ORM\ValidationResult; use SilverStripe\Security\Member; @@ -19,9 +19,9 @@ * * Adds mappings from AD attributes to SilverStripe {@link Member} fields. * - * @extends DataExtension + * @extends Extension */ -class LDAPMemberExtension extends DataExtension +class LDAPMemberExtension extends Extension { /** * @var array