Skip to content

Commit

Permalink
API Set extension hook implementation visibility to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 20, 2024
1 parent d7d9fca commit 88bd506
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/DataObjects/QueuedJobDescriptor.php
Original file line number Diff line number Diff line change
@@ -271,7 +271,7 @@ public function cleanupJob()
}
}

public function onBeforeWrite()
protected function onBeforeWrite()
{
// if a job is marked as 'waiting' for a restart, we need to reset the
// worker it was assigned to, otherwise it'll never pick up and go again if
@@ -283,7 +283,7 @@ public function onBeforeWrite()
parent::onBeforeWrite();
}

public function onBeforeDelete()
protected function onBeforeDelete()
{
parent::onBeforeDelete();
$this->cleanupJob();
2 changes: 1 addition & 1 deletion src/Extensions/MaintenanceLockExtension.php
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ class MaintenanceLockExtension extends DataExtension
/**
* @param FieldList $fields
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
if (!QueuedJobService::config()->get('lock_file_enabled')) {
return;
4 changes: 2 additions & 2 deletions src/Extensions/ScheduledExecutionExtension.php
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ class ScheduledExecutionExtension extends DataExtension
/**
* @param FieldList $fields
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$fields->removeByName([
'ExecuteInterval',
@@ -105,7 +105,7 @@ public function updateCMSFields(FieldList $fields)
}
}

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

0 comments on commit 88bd506

Please sign in to comment.