Skip to content

Commit

Permalink
Merge pull request #189 from creative-commoners/pulls/7/protect-hooks
Browse files Browse the repository at this point in the history
API Set extension hook implementation visibility to protected
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents bb9bc01 + c79ec10 commit 9296619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Extension/Engine/SiteTreePublishingEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private function setUrlsToDelete(array $urlsToDelete): void
/**
* @param SiteTree|SiteTreePublishingEngine|null $original
*/
public function onBeforePublishRecursive($original)
protected function onBeforePublishRecursive($original)
{
// There is no original object. This might be the first time it has been published
if (!$original?->exists()) {
Expand Down Expand Up @@ -201,7 +201,7 @@ public function onBeforePublishRecursive($original)
/**
* @param SiteTree|SiteTreePublishingEngine|null $original
*/
public function onAfterPublishRecursive($original)
protected function onAfterPublishRecursive($original)
{
// Flush any/all changes that we might have collected from onBeforePublishRecursive()
$this->flushChanges();
Expand All @@ -228,7 +228,7 @@ public function onAfterPublishRecursive($original)
$this->flushChanges();
}

public function onBeforeUnpublish()
protected function onBeforeUnpublish()
{
$context = [
'action' => self::ACTION_UNPUBLISH,
Expand All @@ -237,7 +237,7 @@ public function onBeforeUnpublish()
$this->collectChanges($context);
}

public function onAfterUnpublish()
protected function onAfterUnpublish()
{
// Flush any/all changes that we have detected
$this->flushChanges();
Expand Down

0 comments on commit 9296619

Please sign in to comment.