Skip to content

Commit

Permalink
API Replace Extension subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 20, 2024
1 parent 95e5361 commit 0c7bbd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/ShareDraftContentRequirementsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace SilverStripe\ShareDraftContent\Extensions;

use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\View\Requirements;

/**
* @extends DataExtension<CMSMain>
* @extends Extension<CMSMain>
*/
class ShareDraftContentRequirementsExtension extends DataExtension
class ShareDraftContentRequirementsExtension extends Extension
{
public function init()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/ShareDraftContentSiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use SilverStripe\Control\Controller;
use SilverStripe\Control\Director;
use SilverStripe\Core\Config\Config;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\HasManyList;
use SilverStripe\Security\RandomGenerator;
use SilverStripe\ShareDraftContent\Models\ShareToken;
Expand All @@ -16,9 +16,9 @@
* @property string $ShareTokenSalt
* @method HasManyList<ShareToken> ShareTokens()
*
* @extends DataExtension<SiteTree&static>
* @extends Extension<SiteTree&static>
*/
class ShareDraftContentSiteTreeExtension extends DataExtension
class ShareDraftContentSiteTreeExtension extends Extension
{
/**
* The number of days a shared link should be valid for, before expiring.
Expand Down

0 comments on commit 0c7bbd7

Please sign in to comment.