Skip to content

Commit

Permalink
Merge pull request #251 from creative-commoners/pulls/6/replace-exten…
Browse files Browse the repository at this point in the history
…sion-subclasses

API Replace Extension subclasses
  • Loading branch information
GuySartorelli authored Aug 28, 2024
2 parents f2e9897 + 4e665c4 commit 9f477d6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/ContentReviewCMSExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace SilverStripe\ContentReview\Extensions;

use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Admin\LeftAndMainExtension;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\ContentReview\Forms\ReviewContentHandler;
Expand All @@ -14,14 +13,15 @@
use SilverStripe\Forms\Form;
use SilverStripe\ORM\ValidationResult;
use SilverStripe\Security\Security;
use SilverStripe\Core\Extension;

/**
* CMSPageEditController extension to receive the additional action button from
* SiteTreeContentReview::updateCMSActions()
*
* @extends LeftAndMainExtension<CMSMain>
* @extends Extension<CMSMain>
*/
class ContentReviewCMSExtension extends LeftAndMainExtension
class ContentReviewCMSExtension extends Extension
{
use PermissionChecker;

Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/ContentReviewDefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\TextareaField;
use SilverStripe\Forms\TextField;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\ManyManyList;
use SilverStripe\Security\Group;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
use SilverStripe\SiteConfig\SiteConfig;
use SilverStripe\Core\Extension;

/**
* This extensions add a default schema for new pages and pages without a content
Expand All @@ -25,9 +25,9 @@
* @method ManyManyList<Group> ContentReviewGroups()
* @method ManyManyList<Member> ContentReviewUsers()
*
* @extends DataExtension<SiteConfig>
* @extends Extension<SiteConfig>
*/
class ContentReviewDefaultSettings extends DataExtension
class ContentReviewDefaultSettings extends Extension
{
/**
* @config
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/ContentReviewLeftAndMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace SilverStripe\ContentReview\Extensions;

use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Admin\LeftAndMainExtension;
use SilverStripe\Core\Extension;

/**
* @extends LeftAndMainExtension<LeftAndMain>
* @extends Extension<LeftAndMain>
*/
class ContentReviewLeftAndMainExtension extends LeftAndMainExtension
class ContentReviewLeftAndMainExtension extends Extension
{
/**
* Append content review schema configuration
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/ContentReviewOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\ManyManyList;
use SilverStripe\Security\Group;
use SilverStripe\Security\Member;
use SilverStripe\Core\Extension;

/**
* @method ManyManyList<SiteTree> SiteTreeContentReview()
*
* @extends DataExtension<Group|Member>
* @extends Extension<Group|Member>
*/
class ContentReviewOwner extends DataExtension
class ContentReviewOwner extends Extension
{
/**
* @var array
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use SilverStripe\Forms\OptionsetField;
use SilverStripe\Forms\ReadonlyField;
use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\HasManyList;
Expand All @@ -41,6 +40,7 @@
use SilverStripe\View\Requirements;
use Symbiote\QueuedJobs\DataObjects\QueuedJobDescriptor;
use Symbiote\QueuedJobs\Services\QueuedJobService;
use SilverStripe\Core\Extension;

/**
* Set dates at which content needs to be reviewed and provide a report and emails to alert
Expand All @@ -56,9 +56,9 @@
* @method ManyManyList<Member> ContentReviewUsers()
* @method HasManyList<ContentReviewLog> ReviewLogs()
*
* @extends DataExtension<SiteTree>
* @extends Extension<SiteTree>
*/
class SiteTreeContentReview extends DataExtension implements PermissionProvider
class SiteTreeContentReview extends Extension implements PermissionProvider
{
/**
* @var array
Expand Down

0 comments on commit 9f477d6

Please sign in to comment.