Skip to content

Commit

Permalink
Merge pull request #119 from creative-commoners/pulls/4/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 c66a612 + b70c77d commit 925b4f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/VersionFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace SilverStripe\VersionFeed;

use SilverStripe\CMS\Model\SiteTreeExtension;
use SilverStripe\Core\Config\Config;
use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\FieldGroup;
Expand All @@ -13,12 +12,13 @@
use SilverStripe\SiteConfig\SiteConfig;
use SilverStripe\View\Parsers\HtmlDiff;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Core\Extension;
use SilverStripe\Versioned\Versioned_Version;

/**
* @extends Extension<SiteTree&static>
*/
class VersionFeed extends SiteTreeExtension
class VersionFeed extends Extension
{
private static $db = array(
'PublicHistory' => 'Boolean(true)'
Expand Down
6 changes: 3 additions & 3 deletions src/VersionFeedSiteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\FieldGroup;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\SiteConfig\SiteConfig;

/**
* Allows global configuration of all changes
*
* @extends DataExtension<SiteConfig>
* @extends Extension<SiteConfig>
*/
class VersionFeedSiteConfig extends DataExtension
class VersionFeedSiteConfig extends Extension
{
private static $db = array(
'AllChangesEnabled' => 'Boolean(true)'
Expand Down

0 comments on commit 925b4f5

Please sign in to comment.