Skip to content

Commit

Permalink
Merge pull request #88 from creative-commoners/pulls/3/replace-extens…
Browse files Browse the repository at this point in the history
…ion-subclasses

API Replace Extension subclasses
  • Loading branch information
GuySartorelli authored Aug 28, 2024
2 parents 5b039bd + 5d1129f commit 9750358
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/en/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/LDAPGroupExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -19,9 +19,9 @@
*
* @method HasManyList<LDAPGroupMapping> LDAPGroupMappings()
*
* @extends DataExtension<Group&static>
* @extends Extension<Group&static>
*/
class LDAPGroupExtension extends DataExtension
class LDAPGroupExtension extends Extension
{
/**
* @var array
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/LDAPMemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,9 +19,9 @@
*
* Adds mappings from AD attributes to SilverStripe {@link Member} fields.
*
* @extends DataExtension<Member>
* @extends Extension<Member>
*/
class LDAPMemberExtension extends DataExtension
class LDAPMemberExtension extends Extension
{
/**
* @var array
Expand Down

0 comments on commit 9750358

Please sign in to comment.