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 9720c78 commit 8902da6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/MaintenanceLockExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\SiteConfig\SiteConfig;
use Symbiote\QueuedJobs\Services\QueuedJobService;

Expand All @@ -14,9 +14,9 @@
*
* @package Symbiote\QueuedJobs\Extensions
*
* @extends DataExtension<SiteConfig&static>
* @extends Extension<SiteConfig&static>
*/
class MaintenanceLockExtension extends DataExtension
class MaintenanceLockExtension extends Extension
{
/**
* @param FieldList $fields
Expand Down
8 changes: 3 additions & 5 deletions src/Extensions/ScheduledExecutionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use SilverStripe\Forms\NumericField;
use SilverStripe\Forms\ReadonlyField;
use SilverStripe\Forms\TextField;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBDatetime;
use Symbiote\QueuedJobs\DataObjects\QueuedJobDescriptor;
Expand All @@ -27,9 +27,9 @@
*
* @method QueuedJobDescriptor ScheduledJob()
*
* @extends DataExtension<DataObject&static>
* @extends Extension<DataObject&static>
*/
class ScheduledExecutionExtension extends DataExtension
class ScheduledExecutionExtension extends Extension
{
/**
* @var array
Expand Down Expand Up @@ -107,8 +107,6 @@ protected function updateCMSFields(FieldList $fields)

protected function onBeforeWrite()
{
parent::onBeforeWrite();

if ($this->owner->FirstExecution) {
$changed = $this->owner->getChangedFields();
$changed = (
Expand Down

0 comments on commit 8902da6

Please sign in to comment.